From 162676c878cef0d60260292cebaff378437d9b13 Mon Sep 17 00:00:00 2001 From: Ilya Matveev Date: Mon, 30 Jan 2017 12:49:49 +0300 Subject: [PATCH] buildSrc: fix goldValue initialisation in test suite --- .../src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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