Details
-
Feature Request
-
Resolution: Done
-
Major
-
None
-
None
Description
From ./scripts/hudson/narayana.sh:
for i in
; do echo run $i; ant -f run-tests.xml -Dtest.name=$QA_TESTGROUP onetest; [ $? = 0 ] || break; done
ok=$?
This doesn't do as expected, as OK is going to be 0 after the checking of whether it is zero! An example should help:
[tom@localhost narayana](master *) $ ls lded
ls: cannot access lded: No such file or directory
[tom@localhost narayana](master *) $ if [ $? -ne 0 ]; then echo $?; fi
0
You either need to cache OK in that loop, or change the logic a bit - hope it helps