[Test] Properly delete temporary directories after test run
This commit is contained in:
committed by
TeamCityServer
parent
ce44a2a7e4
commit
5382e68180
+5
@@ -48,6 +48,11 @@ public class KtTestUtil {
|
||||
return normalizeFile(FileUtil.createTempDirectory(name, "", false));
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static File tmpDir(@NotNull File parentDir, @NotNull String name) throws IOException {
|
||||
return normalizeFile(FileUtil.createTempDirectory(parentDir, name, "", false));
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static File tmpDirForReusableFolder(String name) throws IOException {
|
||||
return normalizeFile(FileUtil.createTempDirectory(new File(System.getProperty("java.io.tmpdir")), name, "", true));
|
||||
|
||||
Reference in New Issue
Block a user