diff --git a/buildSrc/src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy b/buildSrc/src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy index be8b0f02749..f7d1cf8181b 100644 --- a/buildSrc/src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy +++ b/buildSrc/src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy @@ -145,8 +145,9 @@ abstract class KonanTest extends DefaultTask { } } - if (goldValue != null && goldValue != out.toString()) + if (goldValue != null && goldValue != out.toString()) { throw new RuntimeException("test failed.") + } } } @@ -176,10 +177,13 @@ class RunExternalTestGroup extends RunKonanTest { def groupDirectory = "." def outputSourceSetName = "testOutputExternal" String filter = project.findProperty("filter") - String goldValue = "OK" Map results = [:] Statistics statistics = new Statistics() + RunExternalTestGroup() { + goldValue = "OK" + } + static class TestResult { String status = null String comment = null