diff options
author | Robb Kidd <robb@thekidds.org> | 2019-11-04 15:57:24 -0500 |
---|---|---|
committer | Robb Kidd <robb@thekidds.org> | 2019-11-05 14:54:24 -0500 |
commit | 3e08360011f43b8d97fec69bcfa20fbcdc61383a (patch) | |
tree | db929d1019d6d95c8f4379a919320e705a68d13f /habitat | |
parent | 3b9a17306796a71c67561d49784e459e192fcf24 (diff) | |
download | chef-3e08360011f43b8d97fec69bcfa20fbcdc61383a.tar.gz |
add more error checks to hab package tests
The PowerShell scripts calling PowerShell scripts was apparently
swallowing the errors being thrown from inner layers. Check the error
level of those scripts and throw another error if need be.
Signed-off-by: Robb Kidd <robb@thekidds.org>
Diffstat (limited to 'habitat')
-rw-r--r-- | habitat/tests/test.ps1 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/habitat/tests/test.ps1 b/habitat/tests/test.ps1 index 4e28866657..640507428a 100644 --- a/habitat/tests/test.ps1 +++ b/habitat/tests/test.ps1 @@ -19,4 +19,5 @@ $test_result = Invoke-Pester -Strict -PassThru -Script @{ if ($test_result.FailedCount -ne 0) { Exit $test_result.FailedCount } Write-Host "--- :alembic: Functional Tests" -powershell -File "./habitat/tests/spec.ps1" -PackageIdentifier $PackageIdentifier
\ No newline at end of file +powershell -File "./habitat/tests/spec.ps1" -PackageIdentifier $PackageIdentifier +if (-not $?) { throw "functional spec suite failed" } |