mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Revise integration script to return correct exit code
Before it was returning 1 always.
This commit is contained in:
committed by
Dan Christian Bogos
parent
bddeaff5dd
commit
be554bd4fe
@@ -53,4 +53,4 @@ for val in "${results[@]}"; do
|
||||
break
|
||||
fi
|
||||
done
|
||||
exit $pass
|
||||
exit $pass
|
||||
@@ -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