From 504c76700f87f94f4c86634b879c6758b69ee8a3 Mon Sep 17 00:00:00 2001 From: Pavel Punegov Date: Tue, 6 Nov 2018 17:05:51 +0300 Subject: [PATCH] Exclude tests with JVM_TARGET --- .../src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildSrc/plugins/src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy b/buildSrc/plugins/src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy index 4ee55bcbca8..b0bb59e8b0a 100644 --- a/buildSrc/plugins/src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy +++ b/buildSrc/plugins/src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy @@ -926,8 +926,9 @@ fun runTest() { for (String s : ignoredBackends) { if (s.contains("NATIVE")) { return false } } - // No ignored backends. Check if test is targeted to FULL_JDK + // No ignored backends. Check if test is targeted to FULL_JDK or has JVM_TARGET set if (!findLinesWithPrefixesRemoved(text, "// FULL_JDK").isEmpty()) { return false } + if (!findLinesWithPrefixesRemoved(text, "// JVM_TARGET:").isEmpty()) { return false } return true } }