Don't share temp directory between tests.

Apparently this causes problems on Windows CI runners.

^KT-45744 In Progress
This commit is contained in:
Yahor Berdnikau
2021-04-07 11:10:25 +02:00
committed by TeamCityServer
parent 0ca4254cba
commit 35a020340c
2 changed files with 4 additions and 6 deletions
@@ -29,11 +29,8 @@ import kotlin.streams.asStream
abstract class KGPBaseTest {
open val defaultBuildOptions = BuildOptions()
companion object {
@TempDir
@JvmStatic
lateinit var workingDir: Path
}
@TempDir
lateinit var workingDir: Path
data class BuildOptions(
val logLevel: LogLevel = LogLevel.INFO,
@@ -30,7 +30,7 @@ fun KGPBaseTest.project(
val projectPath = setupProjectFromTestResources(
projectName,
gradleVersion,
KGPBaseTest.workingDir
workingDir
)
projectPath.addDefaultBuildFiles()
@@ -96,6 +96,7 @@ private fun TestProject.commonBuildSetup(
println("<=== Test build: ${this.projectName} ===>")
println("<=== Using Gradle version: ${gradleVersion.version} ===>")
println("<=== Run arguments: ${allBuildArguments.joinToString()} ===>")
println("<=== Project path: ${projectPath.toAbsolutePath()} ===>")
return allBuildArguments
}