Don't share temp directory between tests.
Apparently this causes problems on Windows CI runners. ^KT-45744 In Progress
This commit is contained in:
committed by
TeamCityServer
parent
0ca4254cba
commit
35a020340c
+2
-5
@@ -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,
|
||||
|
||||
+2
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user