-
Bug
-
Resolution: Fixed
-
P4
-
jtreg7.5
-
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
/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
- duplicates
-
CODETOOLS-7903886 --verify-exclude regex is incorrect
-
- Closed
-
- links to
-
Commit(master) openjdk/jtreg/9bc320a4
-
Review(master) openjdk/jtreg/236