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:
Robert Muir 2011-11-09 16:33:13 +00:00
parent 3124307454
commit 2541fba5db
1 changed files with 3 additions and 0 deletions

View File

@ -1305,6 +1305,9 @@ public abstract class LuceneTestCase extends Assert {
if (!TEST_DIRECTORY.equals("random")) sb.append(" -Dtests.directory=").append(TEST_DIRECTORY);
if (RANDOM_MULTIPLIER > 1) sb.append(" -Dtests.multiplier=").append(RANDOM_MULTIPLIER);
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();
}