From 318cd934d76f43ab9ddf52d98e36addb57018c06 Mon Sep 17 00:00:00 2001 From: Jay Deokar Date: Tue, 26 Sep 2023 10:01:51 -0700 Subject: [PATCH] Return exit status if test verification fails --- scripts/lib/tests.sh | 2 +- scripts/run-cyclonus-tests.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/lib/tests.sh b/scripts/lib/tests.sh index 5041c21..4dfc50b 100644 --- a/scripts/lib/tests.sh +++ b/scripts/lib/tests.sh @@ -16,7 +16,7 @@ function run_cyclonus_tests(){ cat ${DIR}/results.log echo "Verify results against expected" - python3 ${DIR}/lib/verify_test_results.py -f ${DIR}/results.log -ip $IP_FAMILY || (echo "Cyclonus tests have failed" && TEST_FAILED=true) + python3 ${DIR}/lib/verify_test_results.py -f ${DIR}/results.log -ip $IP_FAMILY || TEST_FAILED=true } function run_performance_tests(){ diff --git a/scripts/run-cyclonus-tests.sh b/scripts/run-cyclonus-tests.sh index 0016570..8609c70 100755 --- a/scripts/run-cyclonus-tests.sh +++ b/scripts/run-cyclonus-tests.sh @@ -60,6 +60,6 @@ fi run_cyclonus_tests if [[ $TEST_FAILED == "true" ]]; then - echo "Test run failed, check failures" + echo "Test run failed" exit 1 fi