buildSrc: fix goldValue initialisation in test suite
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user