From 85a2ef00c6a56061c776195746bc1baa0479ad34 Mon Sep 17 00:00:00 2001 From: "lingjun.cg" Date: Thu, 12 Oct 2023 18:00:35 +0800 Subject: [PATCH] [Misc] Fix testcase that depend on docker build Summary: A previous CRaC pactch change the signature of DockerTestUtils.buildJdkContainerImage(String imageName).All testcases depend on docker build will compile failed. Testing: TestMemoryWithCgroupV1.java Reviewers: yansendao.ysd,lvfei.lv Issue: https://github.com/dragonwell-project/dragonwell11/issues/872 --- .../test/lib/containers/docker/DockerTestUtils.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/lib/jdk/test/lib/containers/docker/DockerTestUtils.java b/test/lib/jdk/test/lib/containers/docker/DockerTestUtils.java index cd1a817b53d..ecf9bc6db7e 100644 --- a/test/lib/jdk/test/lib/containers/docker/DockerTestUtils.java +++ b/test/lib/jdk/test/lib/containers/docker/DockerTestUtils.java @@ -122,6 +122,17 @@ private static boolean isDockerEngineAvailableCheck() throws Exception { return true; } + /** + * Build a container image that contains JDK under test. + * The jdk will be placed under the "/jdk/" folder inside the image/container file system. + * + * @param imageName name of the image to be created, including version tag + * @throws Exception + */ + public static void buildJdkContainerImage(String imageName) throws Exception { + buildJdkContainerImage(imageName, "jdk-docker"); + } + /** * Build a container image that contains JDK under test. * The jdk will be placed under the "/jdk/" folder inside the image/container file system.