Skip to content

Apache Lucene open-source search software

enforce resource handling, prevent test interference by running in a jvm-unique CWD (under build/, same as tempDir)

Robert Muird55a467fbda5
diff --git a/lucene/common-build.xml b/lucene/common-build.xml
index abae480a8fd..8223f3ffbc5 100644
--- a/lucene/common-build.xml
+++ b/lucene/common-build.xml
@@ -75,7 +75,6 @@
<property name="tests.linedocsfile" value="europarl.lines.txt.gz" />
<property name="tests.iter" value="1" />
<property name="tests.seed" value="random" />
- <property name="tests.userdir" value="."/>
<property name="tests.loggingfile" value="/dev/null"/>
<property name="tests.nightly" value="false" />
@@ -448,7 +447,7 @@
-->
<touch file="@{tempDir}/@{threadNum}/quiet.ant" verbose="false" mkdirs="true"/>
<junit printsummary="off" haltonfailure="no" maxmemory="512M" tempdir="@{tempDir}/@{threadNum}"
- errorProperty="tests.failed" failureProperty="tests.failed" forkmode="perBatch" dir="${tests.userdir}">
+ errorProperty="tests.failed" failureProperty="tests.failed" forkmode="perBatch" dir="@{tempDir}/@{threadNum}">
<classpath refid="@{junit.classpath}"/>
<assertions>
<enable package="org.apache.lucene"/>