mirror of https://github.com/apache/lucene.git
include file.encoding in 'reproduce-with' in case machines have different encodings and there is an encoding bug
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1199832 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3124307454
commit
2541fba5db
|
@ -1305,6 +1305,9 @@ public abstract class LuceneTestCase extends Assert {
|
||||||
if (!TEST_DIRECTORY.equals("random")) sb.append(" -Dtests.directory=").append(TEST_DIRECTORY);
|
if (!TEST_DIRECTORY.equals("random")) sb.append(" -Dtests.directory=").append(TEST_DIRECTORY);
|
||||||
if (RANDOM_MULTIPLIER > 1) sb.append(" -Dtests.multiplier=").append(RANDOM_MULTIPLIER);
|
if (RANDOM_MULTIPLIER > 1) sb.append(" -Dtests.multiplier=").append(RANDOM_MULTIPLIER);
|
||||||
if (TEST_NIGHTLY) sb.append(" -Dtests.nightly=true");
|
if (TEST_NIGHTLY) sb.append(" -Dtests.nightly=true");
|
||||||
|
// TODO we can't randomize this yet (it drives ant crazy) but this makes tests reproduceable
|
||||||
|
// in case machines have different default charsets...
|
||||||
|
sb.append(" -Dfile.encoding=" + System.getProperty("file.encoding"));
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue