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 16:00:20 UTC
lucene-solr:branch_6_0: SOLR-8877: Disable test on environments with
whitespace
Repository: lucene-solr
Updated Branches:
refs/heads/branch_6_0 7a2bd4318 -> a254c24ee
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/a254c24e
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/a254c24e
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/a254c24e
Branch: refs/heads/branch_6_0
Commit: a254c24ee22067a714d2f85cf56ca9c79fd64d8f
Parents: 7a2bd43
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 16:00:08 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/a254c24e/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