Skip to content

Commit

Permalink
Fix the issue of temporary files not being deleted during product tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjiangling committed Feb 9, 2022
1 parent 3136645 commit c25bf44
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ private static void enablePrestoJavaDebugger(DockerContainer container, String c
try {
FileAttribute<Set<PosixFilePermission>> rwx = PosixFilePermissions.asFileAttribute(PosixFilePermissions.fromString("rwxrwxrwx"));
Path script = Files.createTempFile("enable-java-debugger", ".sh", rwx);
script.toFile().deleteOnExit();
Files.writeString(
script,
format(
Expand Down

0 comments on commit c25bf44

Please sign in to comment.