RFR: 7904074: Introduce a way to disallow certain test actions
Jaikiran Pai
jpai at openjdk.org
Fri Sep 5 12:05:40 UTC 2025
Can I please get a review of this enhancement which introduces the ability to configure test actions which are disallowed to be used in test definitions? This addresses https://bugs.openjdk.org/browse/CODETOOLS-7904074.
This introduces a new `disallowedActions` test configuration, which can be set in `TEST.ROOT` or `TEST.properties` file(s) to allow projects to configure test actions that aren't allowed for those projects. For example, the JDK project could be configured with:
disallowedActions=applet
so that any new (or existing) test definitions with a `@run applet` will cause those tests to error.
A new self test has been introduced which verifies this feature. I have also run manual tests to make sure that this feature can be used in the JDK.
-------------
Commit messages:
- 7904074: Introduce a way to disallow certain test actions
Changes: https://git.openjdk.org/jtreg/pull/285/files
Webrev: https://webrevs.openjdk.org/?repo=jtreg&pr=285&range=00
Issue: https://bugs.openjdk.org/browse/CODETOOLS-7904074
Stats: 176 lines in 7 files changed: 176 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jtreg/pull/285.diff
Fetch: git fetch https://git.openjdk.org/jtreg.git pull/285/head:pull/285
PR: https://git.openjdk.org/jtreg/pull/285
More information about the jtreg-dev
mailing list