Skip to content

Commit

Permalink
Merge pull request #75 from jaydeokar/main
Browse files Browse the repository at this point in the history
Return exit status if test verification fails
  • Loading branch information
jaydeokar authored Sep 26, 2023
2 parents 6ed6854 + 318cd93 commit 8d84200
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/lib/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand Down
2 changes: 1 addition & 1 deletion scripts/run-cyclonus-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8d84200

Please sign in to comment.