Better option handling
This commit is contained in:
parent
e6cc8fb5eb
commit
ddd756b276
@ -31,7 +31,11 @@ public final class TestOptions {
|
|||||||
private static final boolean ENABLED;
|
private static final boolean ENABLED;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
String value = System.getProperty("exclude-timing-tests", "false");
|
String value = System.getProperty("exclude-timing-tests", "false").trim();
|
||||||
|
if (value.length() == 0) {
|
||||||
|
value = "true";
|
||||||
|
}
|
||||||
|
|
||||||
ENABLED = !ConversionUtil.toBoolean(value);
|
ENABLED = !ConversionUtil.toBoolean(value);
|
||||||
if (!ENABLED) {
|
if (!ENABLED) {
|
||||||
System.err.println("Timing tests will be disabled as requested.");
|
System.err.println("Timing tests will be disabled as requested.");
|
||||||
|
Loading…
Reference in New Issue
Block a user