From f9a2bf7ff9a471dc7ccfd278f810c11ba3603ffb Mon Sep 17 00:00:00 2001 From: iadgovuser29 <33426478+iadgovuser29@users.noreply.github.com> Date: Fri, 12 Jul 2024 16:03:34 -0400 Subject: [PATCH] Exit test scripts with error if one test fails --- .ci/system-tests/tests/aca_policy_tests.sh | 3 ++- .ci/system-tests/tests/platform_cert_tests.sh | 3 ++- .ci/system-tests/tests/rim_system_tests.sh | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.ci/system-tests/tests/aca_policy_tests.sh b/.ci/system-tests/tests/aca_policy_tests.sh index 8b8afa8c..6f89713c 100755 --- a/.ci/system-tests/tests/aca_policy_tests.sh +++ b/.ci/system-tests/tests/aca_policy_tests.sh @@ -107,8 +107,9 @@ fi # Process Test Results, any single failure will send back a failed result. if [[ $failedTests != 0 ]]; then - export TEST_STATUS=1; + export TEST_STATUS=1 echo "**** $failedTests out of $totalTests ACA Policy Tests Failed! ****" + exit 1 else echo "**** $totalTests ACA Policy Tests Passed! ****" fi diff --git a/.ci/system-tests/tests/platform_cert_tests.sh b/.ci/system-tests/tests/platform_cert_tests.sh index 5a6371cf..7ceadae9 100755 --- a/.ci/system-tests/tests/platform_cert_tests.sh +++ b/.ci/system-tests/tests/platform_cert_tests.sh @@ -48,8 +48,9 @@ fi # Process Test Results, any single failure will send back a failed result. if [[ $failedTests != 0 ]]; then - export TEST_STATUS=1; + export TEST_STATUS=1 echo "**** $failedTests out of $totalTests Platform Certificate Tests Failed! ****" + exit 1 else echo "**** $totalTests Platform Certificate Tests Passed! ****" fi diff --git a/.ci/system-tests/tests/rim_system_tests.sh b/.ci/system-tests/tests/rim_system_tests.sh index 1f74e0db..91093943 100755 --- a/.ci/system-tests/tests/rim_system_tests.sh +++ b/.ci/system-tests/tests/rim_system_tests.sh @@ -51,8 +51,9 @@ fi # Process Test Results, any single failure will send back a failed result. if [[ $failedTests != 0 ]]; then - export TEST_STATUS=1; + export TEST_STATUS=1 echo "**** $failedTests out of $totalTests ACA RIM Tests Failed! ****" + exit 1 else echo "**** $totalTests ACA RIM Tests Passed! ****" fi