Replace if with a property to limit test to MacOS only

This commit is contained in:
Pavel Punegov
2020-06-08 19:30:24 +03:00
committed by Pavel Punegov
parent da312cd16e
commit 11b2c80a22
+5 -7
View File
@@ -4491,13 +4491,11 @@ dependencies {
compile 'junit:junit:4.12'
}
// MacOS only: KT-30366
if (target.family == Family.OSX) {
project.tasks.register("debugger_test", Test.class) {
testLogging { exceptionFormat = 'full' }
UtilsKt.dependsOnDist(it)
systemProperties = ['kotlin.native.home': dist]
}
project.tasks.register("debugger_test", Test.class) {
enabled = (target.family == Family.OSX) // KT-30366
testLogging { exceptionFormat = 'full' }
UtilsKt.dependsOnDist(it)
systemProperties = ['kotlin.native.home': dist]
}
// Configure build for iOS device targets.