mirror of https://github.com/apache/lucene.git
LUCENE-2611: ensure temp directories exist when running tests from an IDE
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@993199 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
999ad98ba6
commit
aef725ae91
|
@ -140,6 +140,7 @@ public abstract class LuceneTestCaseJ4 {
|
||||||
if (s == null)
|
if (s == null)
|
||||||
throw new RuntimeException("To run tests, you need to define system property 'tempDir' or 'java.io.tmpdir'.");
|
throw new RuntimeException("To run tests, you need to define system property 'tempDir' or 'java.io.tmpdir'.");
|
||||||
TEMP_DIR = new File(s);
|
TEMP_DIR = new File(s);
|
||||||
|
TEMP_DIR.mkdirs();
|
||||||
}
|
}
|
||||||
|
|
||||||
// by default we randomly pick a different codec for
|
// by default we randomly pick a different codec for
|
||||||
|
|
Loading…
Reference in New Issue