Use Teamcity tmpdir to cleanUp it between executions

This commit is contained in:
Mikhael Bogdanov
2019-04-16 09:24:53 +02:00
parent 164933a31e
commit bec80dd27f
+3
View File
@@ -98,6 +98,9 @@ fun Project.projectTest(taskName: String = "test", body: Test.() -> Unit = {}):
environment("PROJECT_BUILD_DIR", buildDir)
systemProperty("jps.kotlin.home", rootProject.extra["distKotlinHomeDir"]!!)
systemProperty("kotlin.ni", if (rootProject.hasProperty("newInferenceTests")) "true" else "false")
System.getProperty("teamcity.build.tempDir")?.let {
systemProperty("java.io.tmpdir", it)
}
body()
}