[Wasm] Don't write .wat files in box tests

These files take space on CI, but they are not validated or processed
automatically in any way.

Disabled by default, enabled via kotlin.wasm.debugMode=1
This commit is contained in:
Svyatoslav Kuzmich
2022-05-12 17:52:00 +03:00
committed by Space
parent 6da3b3b274
commit 813b600555
2 changed files with 5 additions and 2 deletions
@@ -176,7 +176,7 @@ abstract class BasicWasmBoxTest(
println(" ------ $name Test file://$path/test.js")
}
writeCompilationResult(res, dir, WasmLoaderKind.D8)
writeCompilationResult(res, dir, WasmLoaderKind.D8, writeWat = debugMode >= DebugMode.DEBUG)
File(dir, "test.js").writeText(testJs)
ExternalTool(System.getProperty("javascript.engine.path.V8"))
.run(