Test loggin only on 64bit x86 linux

This commit is contained in:
Ugljesa Jovanovic 2020-05-31 21:13:01 +02:00 committed by Ugljesa Jovanovic
parent bb622b9420
commit a7818e7b15
No known key found for this signature in database
GPG Key ID: 178E6DFCECCB0E0F

View File

@ -37,13 +37,7 @@ version = ReleaseInfo.version
val ideaActive = System.getProperty("idea.active") == "true" val ideaActive = System.getProperty("idea.active") == "true"
fun getHostOsName(): String {
val target = System.getProperty("os.name")
if (target == "Linux") return "linux"
if (target.startsWith("Windows")) return "windows"
if (target.startsWith("Mac")) return "macos"
return "unknown"
}
kotlin { kotlin {
val hostOsName = getHostOsName() val hostOsName = getHostOsName()
@ -248,7 +242,7 @@ tasks {
platforms = listOf("Common") platforms = listOf("Common")
} }
} }
if (getHostOsName() == "linux") { if (getHostOsName() == "linux" && getHostArchitecture() == "x86-64g") {
val jvmTest by getting(Test::class) { val jvmTest by getting(Test::class) {
testLogging { testLogging {