[JBoss JIRA] (JBTM-1521) QA_STRESS bash fu not correct
by Michael Musgrove (JIRA)
[ https://issues.jboss.org/browse/JBTM-1521?page=com.atlassian.jira.plugin.... ]
Michael Musgrove updated JBTM-1521:
-----------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> 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
> 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
--
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
11 years, 8 months