Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-1521

QA_STRESS bash fu not correct

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 5.0.0.M3
    • None
    • Build System
    • None

    Description

      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

      Attachments

        Activity

          People

            rhn-engineering-mmusgrov Michael Musgrove
            thjenkin@redhat.com Tom Jenkinson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: