Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbonnin committed Aug 7, 2023
1 parent 0c4879e commit 76d1727
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build-logic/src/main/kotlin/Mpp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ private val allAppleTargets = setOf(
)

// Try to guess the dev machine to make sure the tests are running smoothly
private val hostTarget: String
internal val hostTarget: String
get() = if (System.getProperty("os.arch") == "aarch64") {
"macosArm64"
} else {
Expand Down Expand Up @@ -53,14 +53,15 @@ fun Project.configureMppTestsDefaults(
withJs: Boolean,
withJvm: Boolean,
browserTest: Boolean,
appleTargets: Collection<String>,
) {
configureMpp(
withJvm = withJvm,
withJs = withJs,
browserTest = browserTest,
withLinux = false,
withAndroid = false,
appleTargets = setOf(hostTarget),
appleTargets = appleTargets,
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import commonSetup
import configureJavaAndKotlinCompilers
import configureMppTestsDefaults
import configureTesting
import hostTarget
import optIn
import org.gradle.api.Action
import org.gradle.api.Plugin
Expand Down Expand Up @@ -49,6 +50,7 @@ class TestConventionPlugin : Plugin<Project> {
withJs = mppConfiguration.withJs.getOrElse(true),
withJvm = mppConfiguration.withJvm.getOrElse(true),
browserTest = mppConfiguration.browserTest.getOrElse(false),
appleTargets = mppConfiguration.appleTargets.getOrElse(setOf(hostTarget))
)
}
}
Expand Down

0 comments on commit 76d1727

Please sign in to comment.