Minor: use unique temp directories in jps-build tests
This commit is contained in:
+1
-1
@@ -300,7 +300,7 @@ abstract class AbstractIncrementalJpsTest(
|
||||
|
||||
protected open fun doTest(testDataPath: String) {
|
||||
testDataDir = File(testDataPath)
|
||||
workDir = FileUtilRt.createTempDirectory(TEMP_DIRECTORY_TO_USE, "jps-build", null)
|
||||
workDir = FileUtilRt.createTempDirectory(TEMP_DIRECTORY_TO_USE, "aijt-jps-build", null)
|
||||
val buildLogFile = buildLogFinder.findBuildLog(testDataDir)
|
||||
Disposer.register(testRootDisposable, Disposable { FileUtilRt.delete(workDir) })
|
||||
|
||||
|
||||
+1
-1
@@ -301,7 +301,7 @@ abstract class AbstractIncrementalJpsTest(
|
||||
|
||||
protected open fun doTest(testDataPath: String) {
|
||||
testDataDir = File(testDataPath)
|
||||
workDir = FileUtilRt.createTempDirectory(TEMP_DIRECTORY_TO_USE, "jps-build", null)
|
||||
workDir = FileUtilRt.createTempDirectory(TEMP_DIRECTORY_TO_USE, "aijt-jps-build", null)
|
||||
val buildLogFile = buildLogFinder.findBuildLog(testDataDir)
|
||||
Disposer.register(testRootDisposable, Disposable { FileUtilRt.delete(workDir) })
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ abstract class KotlinJpsBuildTestBase : AbstractKotlinJpsBuildTestCase() {
|
||||
|
||||
protected open fun copyTestDataToTmpDir(testDataDir: File): File {
|
||||
assert(testDataDir.exists()) { "Cannot find source folder " + testDataDir.absolutePath }
|
||||
val tmpDir = FileUtil.createTempDirectory("jps-build", null)
|
||||
val tmpDir = FileUtil.createTempDirectory("kjbtb-jps-build", null)
|
||||
FileUtil.copyDir(testDataDir, tmpDir)
|
||||
return tmpDir
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user