From 16b9b937cb6b21944ec384f8c3152aecdad3b06a Mon Sep 17 00:00:00 2001 From: mvicsokolova <82594708+mvicsokolova@users.noreply.github.com> Date: Thu, 7 Mar 2024 17:51:17 +0100 Subject: [PATCH] [integration-tests]: run Gradle builds of projects with --no-daemon option. (#409) --- .../framework/runner/Utils.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration-testing/src/functionalTest/kotlin/kotlinx.atomicfu.gradle.plugin.test/framework/runner/Utils.kt b/integration-testing/src/functionalTest/kotlin/kotlinx.atomicfu.gradle.plugin.test/framework/runner/Utils.kt index cd5f1ac2..9686a784 100644 --- a/integration-testing/src/functionalTest/kotlin/kotlinx.atomicfu.gradle.plugin.test/framework/runner/Utils.kt +++ b/integration-testing/src/functionalTest/kotlin/kotlinx.atomicfu.gradle.plugin.test/framework/runner/Utils.kt @@ -26,9 +26,9 @@ internal fun GradleBuild.buildGradleByShell( private fun buildSystemCommand(projectDir: File, commands: List, properties: List): List { return if (isWindows) - listOf("cmd", "/C", "gradlew.bat", "-p", projectDir.canonicalPath) + commands + properties + listOf("cmd", "/C", "gradlew.bat", "-p", projectDir.canonicalPath) + commands + properties + "--no-daemon" else - listOf("/bin/bash", "gradlew", "-p", projectDir.canonicalPath) + commands + properties + listOf("/bin/bash", "gradlew", "-p", projectDir.canonicalPath) + commands + properties + "--no-daemon" } private val isWindows: Boolean = System.getProperty("os.name")!!.contains("Windows")