mirror of https://github.com/apache/lucene.git
LUCENE-4805: running some tests sometimes ignores the whole test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1451238 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
633eac1cd7
commit
5def61a215
|
@ -191,7 +191,8 @@ final class TestRuleSetupAndRestoreClassEnv extends AbstractBeforeAfterRule {
|
||||||
};
|
};
|
||||||
} else if ("SimpleText".equals(TEST_CODEC) || ("random".equals(TEST_CODEC) && randomVal == 9 && !shouldAvoidCodec("SimpleText"))) {
|
} else if ("SimpleText".equals(TEST_CODEC) || ("random".equals(TEST_CODEC) && randomVal == 9 && !shouldAvoidCodec("SimpleText"))) {
|
||||||
codec = new SimpleTextCodec();
|
codec = new SimpleTextCodec();
|
||||||
} else if ("CheapBastard".equals(TEST_CODEC) || ("random".equals(TEST_CODEC) && randomVal == 8 && !shouldAvoidCodec("CheapBastard"))) {
|
} else if ("CheapBastard".equals(TEST_CODEC) || ("random".equals(TEST_CODEC) && randomVal == 8 && !shouldAvoidCodec("CheapBastard") && !shouldAvoidCodec("Lucene41"))) {
|
||||||
|
// we also avoid this codec if Lucene41 is avoided, since thats the postings format it uses.
|
||||||
codec = new CheapBastardCodec();
|
codec = new CheapBastardCodec();
|
||||||
} else if ("Asserting".equals(TEST_CODEC) || ("random".equals(TEST_CODEC) && randomVal == 7 && !shouldAvoidCodec("Asserting"))) {
|
} else if ("Asserting".equals(TEST_CODEC) || ("random".equals(TEST_CODEC) && randomVal == 7 && !shouldAvoidCodec("Asserting"))) {
|
||||||
codec = new AssertingCodec();
|
codec = new AssertingCodec();
|
||||||
|
|
Loading…
Reference in New Issue