SOLR-5914: Fix map-reduce contrib tests use of solrhome.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/solr5914@1582575 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2014-03-28 01:20:31 +00:00
parent 48c5ea550f
commit 30711a3c34
2 changed files with 4 additions and 3 deletions

View File

@ -79,7 +79,7 @@ public class MorphlineBasicMiniMRTest extends SolrTestCaseJ4 {
private static String tempDir;
private static final File solrHomeDirectory = createTempDir();
private static File solrHomeDirectory;
protected MapReduceIndexerTool createTool() {
return new MapReduceIndexerTool();
@ -108,7 +108,7 @@ public class MorphlineBasicMiniMRTest extends SolrTestCaseJ4 {
@BeforeClass
public static void setupClass() throws Exception {
solrHomeDirectory = createTempDir();
assumeTrue(
"Currently this test can only be run without the lucene test security policy in place",
System.getProperty("java.security.manager", "").equals(""));

View File

@ -108,7 +108,7 @@ public class MorphlineGoLiveMiniMRTest extends AbstractFullDistribZkTestBase {
private final String inputAvroFile2;
private final String inputAvroFile3;
private static final File solrHomeDirectory = createTempDir();
private static File solrHomeDirectory;
@Override
public String getSolrHome() {
@ -127,6 +127,7 @@ public class MorphlineGoLiveMiniMRTest extends AbstractFullDistribZkTestBase {
@BeforeClass
public static void setupClass() throws Exception {
solrHomeDirectory = createTempDir();
assumeTrue(
"Currently this test can only be run without the lucene test security policy in place",
System.getProperty("java.security.manager", "").equals(""));