LV20 update scripting test mute logic for K2
after switching to LV20 by default
This commit is contained in:
committed by
Space Team
parent
5b64741609
commit
8a10070772
+1
-1
@@ -21,7 +21,7 @@ internal fun <R> withTempDir(keyName: String = "tmp", body: (File) -> R) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun expectTestToFailOnK2(test: () -> Unit) {
|
fun expectTestToFailOnK2(test: () -> Unit) {
|
||||||
val isK2 = System.getProperty(SCRIPT_BASE_COMPILER_ARGUMENTS_PROPERTY)?.contains("-language-version 2.0") == true
|
val isK2 = System.getProperty(SCRIPT_BASE_COMPILER_ARGUMENTS_PROPERTY)?.contains("-language-version 1.9") != true
|
||||||
var testFailure: Throwable? = null
|
var testFailure: Throwable? = null
|
||||||
try {
|
try {
|
||||||
test()
|
test()
|
||||||
|
|||||||
+2
-2
@@ -283,8 +283,8 @@ fun CompilerConfiguration.updateWithBaseCompilerArguments() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun expectTestToFailOnK2(test: () -> Unit) {
|
fun expectTestToFailOnK2(test: () -> Unit) {
|
||||||
val isK2 = System.getProperty(SCRIPT_BASE_COMPILER_ARGUMENTS_PROPERTY)?.contains("-language-version 2.0") == true ||
|
val isK2 = System.getProperty(SCRIPT_BASE_COMPILER_ARGUMENTS_PROPERTY)?.contains("-language-version 1.9") != true &&
|
||||||
System.getProperty(SCRIPT_TEST_BASE_COMPILER_ARGUMENTS_PROPERTY)?.contains("-language-version 2.0") == true
|
System.getProperty(SCRIPT_TEST_BASE_COMPILER_ARGUMENTS_PROPERTY)?.contains("-language-version 1.9") != true
|
||||||
var testFailure: Throwable? = null
|
var testFailure: Throwable? = null
|
||||||
try {
|
try {
|
||||||
test()
|
test()
|
||||||
|
|||||||
Reference in New Issue
Block a user