summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--habitat/tests/test.ps13
-rw-r--r--scripts/ci/verify-plan.ps11
2 files changed, 3 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" }
diff --git a/scripts/ci/verify-plan.ps1 b/scripts/ci/verify-plan.ps1
index 880e5a3262..d65f592e9f 100644
--- a/scripts/ci/verify-plan.ps1
+++ b/scripts/ci/verify-plan.ps1
@@ -42,3 +42,4 @@ if (-not $?) { throw "unable to install this build"}
Write-Host "--- :mag_right: Testing $Plan"
powershell -File "./habitat/tests/test.ps1" -PackageIdentifier $pkg_ident
+if (-not $?) { throw "package didn't pass the test suite" }