mirror of https://github.com/apache/lucene.git
fixed tests.iter.min to fail after specified iterations
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1097097 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5432f9de62
commit
9c47a99ab6
|
@ -1239,17 +1239,15 @@ public abstract class LuceneTestCase extends Assert {
|
|||
|
||||
// only print iteration info if the user requested more than one iterations
|
||||
boolean verbose = VERBOSE && TEST_ITER > 1;
|
||||
int lastIterFailed = -1;
|
||||
for (int i = 0; i < TEST_ITER; i++) {
|
||||
if (verbose) {
|
||||
System.out.println("\nNOTE: running iter=" + (1+i) + " of " + TEST_ITER);
|
||||
}
|
||||
super.runChild(arg0, arg1);
|
||||
if (testsFailed) {
|
||||
lastIterFailed = i;
|
||||
if (i == TEST_ITER_MIN - 1) {
|
||||
if (i >= TEST_ITER_MIN - 1) {
|
||||
if (verbose) {
|
||||
System.out.println("\nNOTE: iteration " + lastIterFailed + " failed !");
|
||||
System.out.println("\nNOTE: iteration " + i + " failed !");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue