[Native][tests] Depend on :kotlin-native:dist only when K/N path is not explicitly specified as Gradle property
This commit is contained in:
@@ -67,8 +67,6 @@ fun blackBoxTest(taskName: String, vararg tags: String) = projectTest(taskName,
|
|||||||
group = "verification"
|
group = "verification"
|
||||||
|
|
||||||
if (kotlinBuildProperties.isKotlinNativeEnabled) {
|
if (kotlinBuildProperties.isKotlinNativeEnabled) {
|
||||||
dependsOn(":kotlin-native:dist")
|
|
||||||
|
|
||||||
workingDir = rootDir
|
workingDir = rootDir
|
||||||
outputs.upToDateWhen {
|
outputs.upToDateWhen {
|
||||||
// Don't treat any test task as up-to-date, no matter what.
|
// Don't treat any test task as up-to-date, no matter what.
|
||||||
@@ -94,6 +92,7 @@ fun blackBoxTest(taskName: String, vararg tags: String) = projectTest(taskName,
|
|||||||
}
|
}
|
||||||
|
|
||||||
TestProperty.KOTLIN_NATIVE_HOME.setUpFromGradleProperty(this) {
|
TestProperty.KOTLIN_NATIVE_HOME.setUpFromGradleProperty(this) {
|
||||||
|
dependsOn(":kotlin-native:dist")
|
||||||
project(":kotlin-native").projectDir.resolve("dist").absolutePath
|
project(":kotlin-native").projectDir.resolve("dist").absolutePath
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user