From 6ac644e85cc1789dd32f49cb19ee27b6246be075 Mon Sep 17 00:00:00 2001 From: ionutboangiu Date: Thu, 16 May 2024 18:21:21 +0300 Subject: [PATCH] Revise integration script to return correct exit code Before it was always returning 1 --- integration_test.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/integration_test.sh b/integration_test.sh index 1111c6b4a..0c40a56f5 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