[TEST] support test muting in klib text tests runner

This commit is contained in:
Roman Artemev
2021-06-09 12:42:35 +03:00
committed by teamcityserver
parent 5bc884ce2b
commit e82552975d
2 changed files with 18 additions and 0 deletions
@@ -57,7 +57,15 @@ import java.io.File
import java.util.*
abstract class AbstractKlibTextTestCase : CodegenTestCase() {
companion object {
val SKIP_KLIB_TEST = Regex("""// SKIP_KLIB_TEST""")
}
override fun doMultiFileTest(wholeFile: File, files: List<TestFile>) {
if (SKIP_KLIB_TEST.containsMatchIn(wholeFile.readText())) return
setupEnvironment(files)
loadMultiFiles(files)