github-12386: set java.io.tmpdir in replicator tests' forked processes (#12387)

This commit is contained in:
Michael Sokolov 2023-06-23 08:38:06 -04:00 committed by GitHub
parent fe0278e36e
commit cb195bd96e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -104,6 +104,7 @@ public class TestNRTReplication extends LuceneTestCase {
long seed = random().nextLong() * nodeStartCounter.incrementAndGet(); long seed = random().nextLong() * nodeStartCounter.incrementAndGet();
cmd.add("-Dtests.seed=" + SeedUtils.formatSeed(seed)); cmd.add("-Dtests.seed=" + SeedUtils.formatSeed(seed));
cmd.add("-ea"); cmd.add("-ea");
cmd.add("-Djava.io.tmpdir=" + childTempDir.toFile());
cmd.addAll(getJvmForkArguments()); cmd.addAll(getJvmForkArguments());

View File

@ -608,6 +608,7 @@ public class TestStressNRTReplication extends LuceneTestCase {
long seed = random().nextLong() * nodeStartCounter.incrementAndGet(); long seed = random().nextLong() * nodeStartCounter.incrementAndGet();
cmd.add("-Dtests.seed=" + SeedUtils.formatSeed(seed)); cmd.add("-Dtests.seed=" + SeedUtils.formatSeed(seed));
cmd.add("-ea"); cmd.add("-ea");
cmd.add("-Djava.io.tmpdir=" + childTempDir.toFile());
cmd.addAll(getJvmForkArguments()); cmd.addAll(getJvmForkArguments());
cmd.add("org.junit.runner.JUnitCore"); cmd.add("org.junit.runner.JUnitCore");
cmd.add(TestSimpleServer.class.getName()); cmd.add(TestSimpleServer.class.getName());