Disable RPM SBOM test. (#17532)

This commit is contained in:
Travis Plunk
2022-06-16 11:31:46 -07:00
committed by GitHub
parent 3963e5b15b
commit 2db0fe7207
+1 -12
View File
@@ -43,18 +43,7 @@ Describe "Verify SBOMs" {
$manifestPath = Join-Path $extractedPath -ChildPath '/_manifest/spdx_2.2/manifest.spdx.json'
}
'.rpm' {
Push-Location $resolvedPath
try {
if (Get-Command -Name rpm2cpio -ErrorAction SilentlyContinue) {
rpm2cpio $case.FilePath | cpio -i --make-directories 2>cpio.log
$extractedPath = Get-ChildItem -Path system.management.automation.dll -Recurse | Select-Object -First 1 -ExpandProperty DirectoryName
$manifestPath = Join-Path $extractedPath -ChildPath '/_manifest/spdx_2.2/manifest.spdx.json'
} else {
$skip = "rpm2cpio not found"
}
} finally {
Pop-Location
}
$skip = "rpm test is not stable"
}
Default {
throw "Unkown extension $($case.Extension)"