Add file system watching option to build options.
Default build option value - disabled. In Gradle 7 it is enabled by default, and I suspect it causes flaky build failure when 'TempDir' tries to delete test project. ^KT-45744 In Progress
This commit is contained in:
committed by
TeamCityServer
parent
81621a79a6
commit
8db67ec24b
+9
@@ -45,6 +45,7 @@ abstract class KGPBaseTest {
|
||||
val configurationCacheProblems: BaseGradleIT.ConfigurationCacheProblems = BaseGradleIT.ConfigurationCacheProblems.FAIL,
|
||||
val parallel: Boolean = true,
|
||||
val maxWorkers: Int = (Runtime.getRuntime().availableProcessors() / 4 - 1).coerceAtLeast(2),
|
||||
val fileSystemWatchEnabled: Boolean = false,
|
||||
) {
|
||||
fun toArguments(
|
||||
gradleVersion: GradleVersion
|
||||
@@ -76,6 +77,14 @@ abstract class KGPBaseTest {
|
||||
arguments.add("--no-parallel")
|
||||
}
|
||||
|
||||
if (gradleVersion >= GradleVersion.version("6.5")) {
|
||||
if (fileSystemWatchEnabled) {
|
||||
arguments.add("--watch-fs")
|
||||
} else {
|
||||
arguments.add("--no-watch-fs")
|
||||
}
|
||||
}
|
||||
|
||||
return arguments.toList()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user