Native: use Gradle exec for jsinterop invocation in jsinterop_math test
The previous implementation didn't log anything, including stdout, stderr and the command line, and didn't detect non-zero exit code, making it hard to investigate the test failures.
This commit is contained in:
committed by
Space
parent
c5a02902a7
commit
9476d4c647
@@ -5013,7 +5013,9 @@ standaloneTest("jsinterop_math") {
|
||||
def jsinteropScript = isWindows() ? "jsinterop.bat" : "jsinterop"
|
||||
def jsinterop = "$kotlinNativeDist/bin/$jsinteropScript"
|
||||
// TODO: We probably need a NativeInteropPlugin for jsinterop?
|
||||
"$jsinterop -pkg kotlinx.interop.wasm.math -o $buildDir/jsmath -target wasm32".execute().waitFor()
|
||||
exec {
|
||||
commandLine jsinterop, "-pkg", "kotlinx.interop.wasm.math", "-o", "$buildDir/jsmath", "-target", "wasm32"
|
||||
}
|
||||
|
||||
}
|
||||
dependsOn ':kotlin-native:wasm32PlatformLibs'
|
||||
|
||||
Reference in New Issue
Block a user