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

--verify-exclude test existence and format checks are broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • jtreg7.5.1
    • jtreg7.5
    • tools
    • None

      The logic in verifyExcludeLists is not working. Reproducer below. Expect to not report the test as not existing.

      /testdir$ ls
      exclude.txt JTreport JTwork test

      /testdir$ tree test
      test
      ├── BasicTest.java
      ├── TEST.groups
      └── TEST.ROOT

      /testdir$ cat exclude.txt
      BasicTest.java 0000000 generic-all

      /testdir$ cat test/*
      /*
       * @test
       */
      public class BasicTest {

          public static void main(String[] args) {
          }
      }
      all = \
        /

      /testdir$ /java/jdk-21.0.1/bin/java -jar /git/jtreg/build/images/jtreg/lib/jtreg.jar -exclude:exclude.txt -i test
      /testdir/exclude.txt line 1 is invalid. Reason:
      The fully qualified test must exists.
      Line contents:
      --------------
      BasicTest.java 0000000 generic-all
      --------------
      Error: Cannot run because an exclude list had errors, printed above. Either resolve them or remove the exclude list.
      Test results: no tests selected
      Report written to /testdir/JTreport/html/report.html
      Results written to /testdir/JTwork

            lujaniuk Ludvig Janiuk
            lujaniuk Ludvig Janiuk
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: