Apache Solr open-source search software
SOLR-2949: use a diff elevate file for distrib QEC test
Yonik Seeley7cc0e9683e16
diff --git a/solr/core/src/test/org/apache/solr/handler/component/DistributedQueryElevationComponentTest.java b/solr/core/src/test/org/apache/solr/handler/component/DistributedQueryElevationComponentTest.javaindex 9c1dcb810c7..e985bf87d67 100644--- a/solr/core/src/test/org/apache/solr/handler/component/DistributedQueryElevationComponentTest.java+++ b/solr/core/src/test/org/apache/solr/handler/component/DistributedQueryElevationComponentTest.java@@ -24,6 +24,8 @@ import org.apache.solr.BaseDistributedSearchTestCase;import org.apache.solr.common.SolrInputDocument;import org.apache.solr.common.params.CommonParams;import org.apache.solr.common.util.FileUtils;+import org.junit.After;+import org.junit.AfterClass;import org.junit.BeforeClass;/**@@ -41,14 +43,22 @@ public class DistributedQueryElevationComponentTest extends BaseDistributedSearcschemaString = "schema11.xml";}+ private static String elevateFilename = "elevate-data-distrib.xml";+@BeforeClasspublic static void beforeClass() throws IOException {+ System.setProperty("elevate.data.file", elevateFilename);File parent = new File(TEST_HOME(), "conf");File elevateFile = new File(parent, "elevate.xml");- File elevateDataFile = new File(parent, "elevate-data.xml");+ File elevateDataFile = new File(parent, elevateFilename);FileUtils.copyFile(elevateFile, elevateDataFile);}+ @AfterClass+ public static void afterClass() throws IOException {+ System.clearProperty("elevate.data.file");+ }+@Overridepublic void doTest() throws Exception {