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

Michael Musgrove (JIRA) jira-events at lists.jboss.org
Thu Mar 7 14:37:42 EST 2013


     [ https://issues.jboss.org/browse/JBTM-1521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Musgrove updated JBTM-1521:
-----------------------------------

              Status: Pull Request Sent  (was: Open)
    Git Pull Request: https://github.com/jbosstm/narayana/pull/232

    
> 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 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
> 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


More information about the jbossts-issues mailing list