check mode in tx test cases
This commit is contained in:
parent
9dc08c213c
commit
c9c04aec3b
|
@ -180,12 +180,14 @@ public class TxTester {
|
||||||
List<Resource> setup = loadSetupResources(suite);
|
List<Resource> setup = loadSetupResources(suite);
|
||||||
boolean ok = true;
|
boolean ok = true;
|
||||||
for (JsonObject test : suite.getJsonObjects("tests")) {
|
for (JsonObject test : suite.getJsonObjects("tests")) {
|
||||||
|
if ((!test.has("mode") || modes.contains(test.asString("mode")))) {
|
||||||
if (test.asBoolean("disabled")) {
|
if (test.asBoolean("disabled")) {
|
||||||
ok = true;
|
ok = true;
|
||||||
} else {
|
} else {
|
||||||
ok = runTest(test, tx, setup, modes, filter, outputS.forceArray("tests")) && ok;
|
ok = runTest(test, tx, setup, modes, filter, outputS.forceArray("tests")) && ok;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue