[jbossts-issues] [JBoss JIRA] (JBTM-1521) QA_STRESS bash fu not correct

Tom Jenkinson (JIRA) jira-events at lists.jboss.org
Thu Mar 7 12:25:42 EST 2013

Tom Jenkinson created JBTM-1521:

             Summary: QA_STRESS bash fu not correct
                 Key: JBTM-1521
                 URL: https://issues.jboss.org/browse/JBTM-1521
             Project: JBoss Transaction Manager
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
          Components: Build System
            Reporter: Tom Jenkinson
            Assignee: Michael Musgrove
             Fix For: 5.0.0.M3

>From ./scripts/hudson/narayana.sh:
for i in {1..200}; do echo run $i; ant -f run-tests.xml -Dtest.name=$QA_TESTGROUP onetest; [ $? = 0 ] || break; done


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 at localhost narayana](master *) $ ls lded
ls: cannot access lded: No such file or directory
[tom at localhost narayana](master *) $ if [ $? -ne 0 ]; then echo $?; fi

You either need to cache OK in that loop, or change the logic a bit - hope it helps

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

More information about the jbossts-issues mailing list