diff --git a/common/src/main/kotlin/flank/common/Os.kt b/common/src/main/kotlin/flank/common/Os.kt index 74bea46306..75bb6f8330 100644 --- a/common/src/main/kotlin/flank/common/Os.kt +++ b/common/src/main/kotlin/flank/common/Os.kt @@ -11,3 +11,6 @@ val isMacOS: Boolean by lazy { val isWindows: Boolean by lazy { osName.indexOf("win") >= 0 } + +val isLinux: Boolean + get() = !isWindows && !isMacOS diff --git a/integration_tests/src/test/kotlin/integration/GameloopIT.kt b/integration_tests/src/test/kotlin/integration/GameloopIT.kt index c35dc0bd2a..1b49579d7d 100644 --- a/integration_tests/src/test/kotlin/integration/GameloopIT.kt +++ b/integration_tests/src/test/kotlin/integration/GameloopIT.kt @@ -2,6 +2,8 @@ package integration import FlankCommand import com.google.common.truth.Truth +import flank.common.isLinux +import flank.common.isMacOS import flank.common.isWindows import org.junit.Assume.assumeFalse import org.junit.Test @@ -35,6 +37,8 @@ class GameloopIT { @Test fun iosGameloop() { assumeFalse(isWindows) + assumeFalse(isMacOS) + assumeFalse(isLinux) val name = "$name-ios" val result = FlankCommand( flankPath = FLANK_JAR_PATH,