Minor: IGNORE_BACKEND: ANY_FIR -> IGNORE_BACKEND_FIR: ANY

for consistency with blackbox tests.
This commit is contained in:
pyos
2019-12-19 12:25:21 +01:00
committed by Dmitry Petrov
parent 38a3797325
commit 26822a0cde
6 changed files with 41 additions and 43 deletions
@@ -230,8 +230,6 @@ public final class InTextDirectivesUtils {
}
public static boolean isIgnoredTarget(TargetBackend targetBackend, File file, String ignoreBackendDirectivePrefix) {
if (targetBackend == TargetBackend.ANY) return false;
List<String> ignoredBackends = findListWithPrefixes(textWithDirectives(file), ignoreBackendDirectivePrefix);
return ignoredBackends.contains(targetBackend.name());
}
@@ -763,10 +763,6 @@ public class KotlinTestUtils {
}
private static DoTest testWithCustomIgnoreDirective(DoTest test, TargetBackend targetBackend, String ignoreDirective) throws Exception {
if (targetBackend == TargetBackend.ANY && !AUTOMATICALLY_MUTE_FAILED_TESTS) {
return test;
}
return filePath -> {
File testDataFile = new File(filePath);
@@ -10,7 +10,6 @@ enum class TargetBackend(
private val compatibleWithTargetBackend: TargetBackend? = null
) {
ANY(false),
ANY_FIR(true, ANY),
JVM(false),
JVM_IR(true, JVM),
JS(false),