Integrated: 7904074: Introduce a way to disallow certain test actions

Jaikiran Pai jpai at openjdk.org
Sat Sep 6 14:36:23 UTC 2025


On Fri, 5 Sep 2025 12:01:33 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: 02689cee
Author:    Jaikiran Pai <jpai at openjdk.org>
URL:       https://git.openjdk.org/jtreg/commit/02689cee7ff99f837a3a79b1cd34151f9596a739
Stats:     176 lines in 7 files changed: 176 ins; 0 del; 0 mod

7904074: Introduce a way to disallow certain test actions

Reviewed-by: cstein

-------------

PR: https://git.openjdk.org/jtreg/pull/285


More information about the jtreg-dev mailing list