Apache Lucene open-source search software
Pass tests.timeoutSuite to junit4 if defined on command line or in user properties. This can be used to lower (or increase) the default timeout value. Example: -Dtests.timeoutSuite=5000! (5 seconds, note the exclamation mark -- this means to override the annotation defaults).
Dawid Weissf8d37b166fd8
diff --git a/lucene/common-build.xml b/lucene/common-build.xmlindex b1d4899170e..186ddd65a87 100644--- a/lucene/common-build.xml+++ b/lucene/common-build.xml@@ -903,6 +903,7 @@<propertyref prefix="tests.maxfailures" /><propertyref prefix="tests.failfast" /><propertyref prefix="tests.badapples" />+ <propertyref prefix="tests.timeoutSuite" /></syspropertyset><!-- Pass randomized settings to the forked JVM. -->@@ -1119,6 +1120,9 @@ ant -verbose test# Enabled automatically when running for a single test case.ant -Dtests.showSuccess=true test+# Change the default suite timeout to 5 seconds.+ant -Dtests.timeoutSuite=5000! ...+# Display local averaged stats, if any (30 slowest tests).ant test-times -Dmax=30