RFR(XS): 8189213: [TESTBUG] Running jtreg tests on machine without docker shows extra message
David Holmes
david.holmes at oracle.com
Thu Nov 2 23:47:47 UTC 2017
Hi Misha,
I don't see anything else in VMProps that writes anything out so to me
the fix is to delete the System.err.println completely.
That said I did not look at this in the past but I feel the whole docker
test here is not really appropriate/suitable to always be run on
linux-x64. It has to exec another process and wait up to 10 seconds to
get a result! Can't this actually be done via a WhiteBox check once
Bob's container support updates are in place?
Thanks,
David
On 3/11/2017 7:03 AM, mikhailo wrote:
> Please review this simple change that makes the error message in
> jtreg-ext/requires/VMProps.java conditional
> on java property "vmprops.trace.verbose". W/o this condition an error
> message is printed each time any jtreg
> test is ran, including non-docker tests.
>
> JBS: https://bugs.openjdk.java.net/browse/JDK-8189213
> Webrev: http://cr.openjdk.java.net/~mseledtsov/8189213.00/
>
>
>
> ======= Background and details:
> VMProps.java is called for each test run of jtreg (be it a run
> containing a singe test or multiple tests).
> VMProps evaluates the @requires properties. Therefore, in case of this
> bug, any time a user runs any jtreg VM test
> on a machine w/o an operational docker engine, this error will pop up.
> The fix makes printing of this error message conditional, off by
> default. The message can be turend on
> via a property vmprops.trace.verbose when detailed diagnostic info is
> desired.
>
>
>
> ======== Testing:
> Local testing:
> W/o docker present:
> jtreg <arbitrary-jtreg-test>
> No error message
> jtreg -Dvmprops.trace.verbose=true <arbitrary-jtreg-test>
> Detailed error message
> jtreg DockerBasicTest.java
> Test skipped
>
> With docker installed but no permissions:
> jtreg <arbitrary-jtreg-test>
> No error message
> jtreg -Dvmprops.trace.verbose=true <arbitrary-jtreg-test>
> Detailed error message
> jtreg DockerBasicTest.java
> Test skipped
>
> With docker installed and operational:
> jtreg <arbitrary-jtreg-test>
> No error message
> jtreg -Dvmprops.trace.verbose=true <arbitrary-jtreg-test>
> No error message
> jtreg DockerBasicTest.java
> Test passed
>
> Testing via automated distributed test system:
> - tier1
> - docker tests
> In progress
>
>
> Thank you,
> Misha
>
More information about the hotspot-runtime-dev
mailing list