Fix omnibus-test.ps1

Use Throw instead of Exit to ensure the CI job fails when a command has
a non-zero exit code.

Signed-off-by: Jeremiah Snapp <jeremiah@chef.io>
This commit is contained in:
Jeremiah Snapp 2022-05-16 16:55:16 -04:00
parent bcd99943d7
commit b04760b7f9

View file

@ -9,4 +9,4 @@ Write-Host "+++ Testing $Plan"
Set-Location test/artifact
rake
If ($lastexitcode -ne 0) { Exit $lastexitcode }
If ($lastexitcode -ne 0) { Throw $lastexitcode }