Skip to content

Commit

Permalink
JBTM-1521 Report the result of QA stress test correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
mmusgrov committed Mar 11, 2013
1 parent 52cbdf6 commit 5902d3c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions scripts/hudson/narayana.sh
Expand Up @@ -236,15 +236,23 @@ function qa_tests_once {
# run the ant target
if [ "x$QA_TESTGROUP" != "x" ]; then
if [ "x$QA_STRESS" != "x" ]; then
for i in {1..200}; do echo run $i; ant -f run-tests.xml -Dtest.name=$QA_TESTGROUP onetest; [ $? = 0 ] || break; done
ok=0
for i in `seq 1 $QA_STRESS`; do
echo run $i;
ant -f run-tests.xml -Dtest.name=$QA_TESTGROUP onetest;
if [ $? -ne 0 ]; then
ok=1; break;
fi
done
else
ant -f run-tests.xml -Dtest.name=$QA_TESTGROUP onetest;
ok=$?
fi
else
ant -f run-tests.xml $target $QA_PROFILE
ok=$?
fi

ok=$?
# archive the jtsremote test output (use a name related to the orb that was used for the tests)
mv "$WORKSPACE/qa/TEST-*.txt" $WORKSPACE/qa/testoutput 2>/dev/null
ant -f run-tests.xml testoutput.zip -Dtestoutput.zipname=$testoutputzip
Expand Down

0 comments on commit 5902d3c

Please sign in to comment.