Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

LUCENE-3452: fix lockdir fix lost during test-framework move

Robert Muir491d8603e63e
diff --git a/lucene/src/test-framework/java/org/apache/lucene/util/LuceneJUnitResultFormatter.java b/lucene/src/test-framework/java/org/apache/lucene/util/LuceneJUnitResultFormatter.java
index a03f780dafc..c67b9bc4c66 100644
--- a/lucene/src/test-framework/java/org/apache/lucene/util/LuceneJUnitResultFormatter.java
+++ b/lucene/src/test-framework/java/org/apache/lucene/util/LuceneJUnitResultFormatter.java
@@ -66,7 +66,8 @@ public class LuceneJUnitResultFormatter implements JUnitResultFormatter {
private static final org.apache.lucene.store.Lock lock;
static {
- File lockDir = new File(System.getProperty("java.io.tmpdir"),
+ File lockDir = new File(
+ System.getProperty("tests.lockdir", System.getProperty("java.io.tmpdir")),
"lucene_junit_lock");
lockDir.mkdirs();
if (!lockDir.exists()) {