mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Revise integration script to return correct exit code
Before it was always returning 1
This commit is contained in:
committed by
Dan Christian Bogos
parent
41c62c1291
commit
6ac644e85c
@@ -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
|
||||
Reference in New Issue
Block a user