Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7165943

jtreg should retun an exit code if -bug:ID is used and no tests are found

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • None
    • tools
    • None
    • generic
    • generic

      jtreg should return an error code if the -bug:<bugid> options is used and no tests are found, whereas the return value of 0 incorrectly indicates a success (leading to the interpretation that tests were found and run successfully).
      Something like:

      /** No tests were found. */
          public static final int EXIT_NO_TESTS = 6;

      This would facilitate better automated bug verification.

      work-arond is to grep results directories for tests found or not tests found message.

            jjg Jonathan Gibbons
            ssides Steve Sides
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: