[Gradle][test] Don't use daemon when testing environment variables

This commit is contained in:
Pavel Punegov
2022-01-28 16:30:07 +03:00
committed by Space
parent 63153a0beb
commit 9b55ec43e7
@@ -669,14 +669,14 @@ class GeneralNativeIT : BaseGradleIT() {
} }
// Check that setting new value to tracked environment variable triggers tests rerun // Check that setting new value to tracked environment variable triggers tests rerun
build("check", options = defaultBuildOptions().copy(androidHome = projectDir)) { build("check", options = defaultBuildOptions().copy(withDaemon = false, androidHome = projectDir)) {
assertSuccessful() assertSuccessful()
assertTasksExecuted(*testsToExecute.toTypedArray()) assertTasksExecuted(*testsToExecute.toTypedArray())
assertTasksSkipped(*testsToSkip.toTypedArray()) assertTasksSkipped(*testsToSkip.toTypedArray())
} }
build("check", options = defaultBuildOptions().copy(androidHome = projectDir)) { build("check", options = defaultBuildOptions().copy(withDaemon = false, androidHome = projectDir)) {
assertSuccessful() assertSuccessful()
assertTasksUpToDate(*testsToExecute.toTypedArray()) assertTasksUpToDate(*testsToExecute.toTypedArray())