You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by so...@apache.org on 2023/06/23 12:39:33 UTC
[lucene] branch branch_9x updated: github-12386: set java.io.tmpdir in replicator tests' forked processes (#12387)
This is an automated email from the ASF dual-hosted git repository.
sokolov pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new ddcaa592a63 github-12386: set java.io.tmpdir in replicator tests' forked processes (#12387)
ddcaa592a63 is described below
commit ddcaa592a631c0c8929a2ca8ff61db7d44794123
Author: Michael Sokolov <so...@falutin.net>
AuthorDate: Fri Jun 23 08:38:06 2023 -0400
github-12386: set java.io.tmpdir in replicator tests' forked processes (#12387)
---
.../src/test/org/apache/lucene/replicator/nrt/TestNRTReplication.java | 1 +
.../test/org/apache/lucene/replicator/nrt/TestStressNRTReplication.java | 1 +
2 files changed, 2 insertions(+)
diff --git a/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/TestNRTReplication.java b/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/TestNRTReplication.java
index 2af7a68bdb6..e530652817b 100644
--- a/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/TestNRTReplication.java
+++ b/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/TestNRTReplication.java
@@ -104,6 +104,7 @@ public class TestNRTReplication extends LuceneTestCase {
long seed = random().nextLong() * nodeStartCounter.incrementAndGet();
cmd.add("-Dtests.seed=" + SeedUtils.formatSeed(seed));
cmd.add("-ea");
+ cmd.add("-Djava.io.tmpdir=" + childTempDir.toFile());
cmd.addAll(getJvmForkArguments());
diff --git a/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/TestStressNRTReplication.java b/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/TestStressNRTReplication.java
index c2e6c5d89fc..f1480c6ffb8 100644
--- a/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/TestStressNRTReplication.java
+++ b/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/TestStressNRTReplication.java
@@ -608,6 +608,7 @@ public class TestStressNRTReplication extends LuceneTestCase {
long seed = random().nextLong() * nodeStartCounter.incrementAndGet();
cmd.add("-Dtests.seed=" + SeedUtils.formatSeed(seed));
cmd.add("-ea");
+ cmd.add("-Djava.io.tmpdir=" + childTempDir.toFile());
cmd.addAll(getJvmForkArguments());
cmd.add("org.junit.runner.JUnitCore");
cmd.add(TestSimpleServer.class.getName());