Skip to content

Commit

Permalink
8309138: Fix container tests for jdks with symlinked conf dir
Browse files Browse the repository at this point in the history
Backport-of: ec55539534d43629c1a47407a8e2e94913034a71
  • Loading branch information
zzambers authored and jerboaa committed Jun 14, 2023
1 parent 6991372 commit 01ac9cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/lib/jdk/test/lib/containers/docker/DockerTestUtils.java
Expand Up @@ -27,6 +27,7 @@
import java.io.FileWriter;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.FileVisitOption;
import java.nio.file.FileVisitResult;
import java.nio.file.Path;
import java.nio.file.Paths;
Expand All @@ -36,6 +37,7 @@
import java.util.Arrays;
import java.util.ArrayList;
import java.util.Collections;
import java.util.EnumSet;
import java.util.List;
import jdk.test.lib.Container;
import jdk.test.lib.Utils;
Expand Down Expand Up @@ -164,7 +166,7 @@ public static void buildJdkContainerImage(String imageName, String dockerfileCon
Path jdkSrcDir = Paths.get(JDK_UNDER_TEST);
Path jdkDstDir = buildDir.resolve("jdk");
Files.createDirectories(jdkDstDir);
Files.walkFileTree(jdkSrcDir, new CopyFileVisitor(jdkSrcDir, jdkDstDir));
Files.walkFileTree(jdkSrcDir, EnumSet.of(FileVisitOption.FOLLOW_LINKS), Integer.MAX_VALUE, new CopyFileVisitor(jdkSrcDir, jdkDstDir));

buildImage(imageName, buildDir);
}
Expand Down

1 comment on commit 01ac9cb

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.