LUCENE-2554: pick a random codec for each unit test

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/preflexfixes@978877 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2010-07-24 14:31:22 +00:00
parent 94dbf446ed
commit a964231882
1 changed files with 4 additions and 2 deletions

View File

@ -240,8 +240,10 @@ public class _TestUtil {
/** gets the codec to run tests with */ /** gets the codec to run tests with */
public static String getTestCodec() { public static String getTestCodec() {
// nocommit: should we default to random? // by default we randomly pick a different codec for
return System.getProperty("tests.codec", "Standard"); // each test case (non-J4 tests) and each test class (J4
// tests)
return System.getProperty("tests.codec", "random");
} }
public static CodecProvider alwaysCodec(final Codec c) { public static CodecProvider alwaysCodec(final Codec c) {