[JS TESTS] Don't run ES6 test on win & mac till j2v8 issue is fixed.

This commit is contained in:
Roman Artemev
2020-05-25 13:16:30 +03:00
committed by romanart
parent 50162265da
commit 086241659e
@@ -56,6 +56,8 @@ abstract class BasicIrBoxTest(
val runEs6Mode: Boolean = getBoolean("kotlin.js.ir.es6", false)
private val osName: String = System.getProperty("os.name").toLowerCase()
// TODO Design incremental compilation for IR and add test support
override val incrementalCompilationChecksEnabled = false
@@ -190,6 +192,17 @@ abstract class BasicIrBoxTest(
}
}
override fun dontRunOnSpecificPlatform(targetBackend: TargetBackend): Boolean {
if (targetBackend != TargetBackend.JS_IR_ES6) return false
if (!runEs6Mode) return false
// TODO: Since j2v8 does not support ES6 on mac and windows, temporary don't run such test on those platforms.
if (osName.indexOf("win") >= 0) return true
if (osName.indexOf("mac") >= 0 || osName.indexOf("darwin") >= 0) return true
return false
}
override fun runGeneratedCode(
jsFiles: List<String>,
testModuleName: String?,