Revise integration script to return correct exit code

Before it was returning 1 always.
This commit is contained in:
ionutboangiu
2024-04-10 09:29:57 +03:00
committed by Dan Christian Bogos
parent bddeaff5dd
commit be554bd4fe
2 changed files with 6 additions and 3 deletions

View File

@@ -46,8 +46,11 @@ for test in "${single_run_packages[@]}"; do
done done
# Check the results and exit with an appropriate code # Check the results and exit with an appropriate code
pass=1 pass=0
for val in "${results[@]}"; do for val in "${results[@]}"; do
(( pass=pass||val)) if [ "$val" -ne 0 ]; then
pass=1
break
fi
done done
exit $pass exit $pass