RFR: 8227642: [TESTBUG] Make docker tests podman compatible

Alan Bateman Alan.Bateman at oracle.com
Fri Jul 19 10:58:15 UTC 2019

On 12/07/2019 19:08, Severin Gehwolf wrote:
> Hi,
> There is an alternative container engine which is being used by Fedora
> and RHEL 8, called podman[1]. It's mostly compatible with docker. It
> looks like OpenJDK docker tests can be made podman compatible with a
> few little tweaks. One "interesting" one is to not assert "Successfully
> built" in the build output but only rely on the exit code, which seems
> to be OK for my testing. Interestingly the test would be skipped in
> that case.
> Bug: https://bugs.openjdk.java.net/browse/JDK-8227642
> webrev: http://cr.openjdk.java.net/~sgehwolf/webrevs/JDK-8227642/01/webrev/
Just looking at 02/webrev and I see it adds a System.getProperty to 
test/lib/jdk/test/lib/Platform.java. That may cause issues for tests 
that use this test infrastructure and have their own security policy 
(we've run into issues in the past with test infrastructure requiring 
permissions that the tests using the test library don't know about). In 
this case it might be better to create Platform.Docker.COMMAND so that 
only the container tests need to be concerned with it.


More information about the core-libs-dev mailing list