build/tests: check exit status instead of output of external tests
This commit is contained in:
committed by
SvyatoslavScherbina
parent
13bbd7af81
commit
9e58f884d3
@@ -242,7 +242,6 @@ class RunExternalTestGroup extends RunKonanTest {
|
||||
Statistics statistics = new Statistics()
|
||||
|
||||
RunExternalTestGroup() {
|
||||
goldValue = "OK"
|
||||
}
|
||||
|
||||
static enum TestStatus {
|
||||
@@ -324,11 +323,11 @@ class RunExternalTestGroup extends RunKonanTest {
|
||||
import kotlin.test.TestFailedException
|
||||
|
||||
fun main(args : Array<String>) {
|
||||
try {
|
||||
@Suppress("USELESS_ELVIS")
|
||||
print(${pkg}box()?:"null")
|
||||
} catch (e:TestFailedException) {
|
||||
print("FAIL")
|
||||
@Suppress("USELESS_ELVIS")
|
||||
val result = ${pkg}box()?:"null"
|
||||
println(result)
|
||||
if (result != "OK") {
|
||||
throw TestFailedException(result)
|
||||
}
|
||||
}
|
||||
""")
|
||||
|
||||
Reference in New Issue
Block a user