You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2016/03/19 15:59:24 UTC

lucene-solr:branch_6x: SOLR-8877: Disable test on environments with whitespace

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6x 0a89ffaf9 -> 4d20feeea


SOLR-8877: Disable test on environments with whitespace


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/4d20feee
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/4d20feee
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/4d20feee

Branch: refs/heads/branch_6x
Commit: 4d20feeeae504b1d4acba2214d7e25df40239c64
Parents: 0a89ffa
Author: Uwe Schindler <us...@apache.org>
Authored: Sat Mar 19 15:58:31 2016 +0100
Committer: Uwe Schindler <us...@apache.org>
Committed: Sat Mar 19 15:59:09 2016 +0100

----------------------------------------------------------------------
 .../src/test/org/apache/solr/util/TestSolrCLIRunExample.java  | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/4d20feee/solr/core/src/test/org/apache/solr/util/TestSolrCLIRunExample.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/util/TestSolrCLIRunExample.java b/solr/core/src/test/org/apache/solr/util/TestSolrCLIRunExample.java
index e806692..1a07d31 100644
--- a/solr/core/src/test/org/apache/solr/util/TestSolrCLIRunExample.java
+++ b/solr/core/src/test/org/apache/solr/util/TestSolrCLIRunExample.java
@@ -47,6 +47,7 @@ import org.apache.solr.client.solrj.response.QueryResponse;
 import org.apache.solr.cloud.MiniSolrCloudCluster;
 import org.apache.solr.common.SolrInputDocument;
 import org.junit.After;
+import org.junit.BeforeClass;
 import org.junit.Ignore;
 import org.junit.Test;
 import org.slf4j.Logger;
@@ -60,6 +61,12 @@ import org.slf4j.LoggerFactory;
 public class TestSolrCLIRunExample extends SolrTestCaseJ4 {
 
   private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
+  
+  @BeforeClass
+  public static void beforeClass() throws IOException {
+    assumeFalse("FIXME: This test does not work with whitespace in CWD (https://issues.apache.org/jira/browse/SOLR-8877)",
+        Paths.get(".").toAbsolutePath().toString().contains(" "));
+  }
 
   /**
    * Overrides the call to exec bin/solr to start Solr nodes to start them using the Solr test-framework