From ea4caa3be52ba401e896eabbf78cf7163c8fb428 Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Wed, 8 Jun 2022 13:49:31 -0700 Subject: [PATCH] Correct issuse with sbom test --- tools/packaging/releaseTests/sbom.tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/packaging/releaseTests/sbom.tests.ps1 b/tools/packaging/releaseTests/sbom.tests.ps1 index 9469f68576eaa..7c0c73ed17efa 100644 --- a/tools/packaging/releaseTests/sbom.tests.ps1 +++ b/tools/packaging/releaseTests/sbom.tests.ps1 @@ -47,8 +47,8 @@ Describe "Verify SBOMs" { try { if (Get-Command -Name rpm2cpio -ErrorAction SilentlyContinue) { rpm2cpio $case.FilePath | cpio -i --make-directories 2>cpio.log - $manifestPath = Get-ChildItem -Path manifest.spdx.json -Recurse | Select-Object -First 1 -ExpandProperty FullName $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" }