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
+1 -3
View File
@@ -4491,14 +4491,12 @@ dependencies {
compile 'junit:junit:4.12' compile 'junit:junit:4.12'
} }
// MacOS only: KT-30366
if (target.family == Family.OSX) {
project.tasks.register("debugger_test", Test.class) { project.tasks.register("debugger_test", Test.class) {
enabled = (target.family == Family.OSX) // KT-30366
testLogging { exceptionFormat = 'full' } testLogging { exceptionFormat = 'full' }
UtilsKt.dependsOnDist(it) UtilsKt.dependsOnDist(it)
systemProperties = ['kotlin.native.home': dist] systemProperties = ['kotlin.native.home': dist]
} }
}
// Configure build for iOS device targets. // Configure build for iOS device targets.
if (target.family == Family.IOS && (target.architecture == ARM32 || target.architecture == ARM64)) { if (target.family == Family.IOS && (target.architecture == ARM32 || target.architecture == ARM64)) {