From be554bd4fe95f27f776267383a862ae859af05da Mon Sep 17 00:00:00 2001 From: ionutboangiu Date: Wed, 10 Apr 2024 09:29:57 +0300 Subject: [PATCH] Revise integration script to return correct exit code Before it was returning 1 always. --- flaky_test.sh | 2 +- integration_test.sh | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/flaky_test.sh b/flaky_test.sh index dfe4df48a..0f68d9857 100755 --- a/flaky_test.sh +++ b/flaky_test.sh @@ -53,4 +53,4 @@ for val in "${results[@]}"; do break fi done -exit $pass +exit $pass \ No newline at end of file diff --git a/integration_test.sh b/integration_test.sh index 5f6eee96e..0c89839d9 100755 --- a/integration_test.sh +++ b/integration_test.sh @@ -46,8 +46,11 @@ for test in "${single_run_packages[@]}"; do done # Check the results and exit with an appropriate code -pass=1 +pass=0 for val in "${results[@]}"; do - (( pass=pass||val)) + if [ "$val" -ne 0 ]; then + pass=1 + break + fi done exit $pass \ No newline at end of file