OpenJDK / jdk / jdk
changeset 54310:646c54d5989b
8221527: [TESTBUG] DockerBasicTest.java contains hard-coded reference to JDK 10
Summary: Using Docker test library to get the image name
Reviewed-by: dholmes
author | mseledtsov |
---|---|
date | Wed, 27 Mar 2019 08:38:05 -0700 |
parents | c4c225b49c5f |
children | 3fedbfdb25b6 |
files | test/hotspot/jtreg/runtime/containers/docker/DockerBasicTest.java |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/test/hotspot/jtreg/runtime/containers/docker/DockerBasicTest.java Wed Mar 27 07:21:18 2019 -0700 +++ b/test/hotspot/jtreg/runtime/containers/docker/DockerBasicTest.java Wed Mar 27 08:38:05 2019 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -33,6 +33,7 @@ * @build HelloDocker * @run driver DockerBasicTest */ +import jdk.test.lib.containers.docker.Common; import jdk.test.lib.containers.docker.DockerRunOptions; import jdk.test.lib.containers.docker.DockerTestUtils; import jdk.test.lib.Platform; @@ -40,7 +41,7 @@ public class DockerBasicTest { - private static final String imageNameAndTag = "jdk10-internal:test"; + private static final String imageNameAndTag = Common.imageName("basic"); // Diganostics: set to false to examine image after the test private static final boolean removeImageAfterTest = true;