buildSrc: fix goldValue initialisation in test suite

This commit is contained in:
Ilya Matveev
2017-01-30 12:49:49 +03:00
committed by ilmat192
parent b06f5d0d5b
commit 162676c878
@@ -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<String, TestResult> results = [:]
Statistics statistics = new Statistics()
RunExternalTestGroup() {
goldValue = "OK"
}
static class TestResult {
String status = null
String comment = null