Fix test suite error in the return code: GLOBAL_RESULT were always true.

This commit is contained in:
Alexandre Pujol 2017-01-30 21:19:43 +00:00
parent e78af47c56
commit f72534790a

View File

@ -389,11 +389,9 @@ notice "Test results summary"
print "${#startloops} loop devices busy at start"
for t in $tests; do
echo "$t\t${results[$t]:-FAIL}"
done
for r in ${(v)results}; do
[[ "$r" == "SUCCESS" ]] || GLOBAL_RESULT=1
res=${results[$t]:-FAIL}
[[ "$res" == "SUCCESS" ]] || GLOBAL_RESULT=1
echo "$t\t$res"
done
print "${#endloops} loop devices busy at end"