Centrally set a system property that gets passed to all tests in a sub-directory?
jonathan.gibbons at oracle.com
Sun Nov 21 15:38:46 UTC 2021
Sorry, there is no such feature.
On 11/21/21 2:00 AM, Jaikiran Pai wrote:
> Is there a way in jtreg where a particular Java system property can be
> passed to all tests that run in othervm mode and belong to a
> particular sub-directory in the test root?
> Something like "othervm.test.java.opts"? What I'm trying to solve is
> instead of editing each of the 10+ test classes that have a @run
> testng/othervm or @run main/othervm to include -Dfoo=bar in the test
> definition, I would like to have a TEST.properties for that
> sub-directory which would contain this system property to be set while
> launching those tests? I have been looking the documentation
> https://openjdk.java.net/jtreg/tag-spec.html#config but couldn't find
> anything that would help in this case.
More information about the jtreg-use