mirror of https://github.com/apache/lucene.git
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:
parent
48c5ea550f
commit
30711a3c34
|
@ -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(""));
|
||||
|
|
|
@ -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(""));
|
||||
|
|
Loading…
Reference in New Issue