浏览代码

Suppress reindex-from-old tests if there are spaces in the path

David Turner 7 年之前
父节点
当前提交
d2ca16b4c7
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      modules/reindex/build.gradle

+ 3 - 2
modules/reindex/build.gradle

@@ -83,8 +83,9 @@ dependencies {
   es090 'org.elasticsearch:elasticsearch:0.90.13@zip'
 }
 
-if (Os.isFamily(Os.FAMILY_WINDOWS)) {
-  // we can't get the pid files in windows so we skip reindex-from-old
+if (Os.isFamily(Os.FAMILY_WINDOWS) || rootProject.rootDir.toString().contains(" ")) {
+  // We can't get the pid files in windows and old versions of Elasticsearch doesn't set up the CLASSPATH correctly if there are spaces
+  // in the path. In either case, we skip reindex-from-old.
   integTestRunner.systemProperty "tests.fromOld", "false"
 } else {
   integTestRunner.systemProperty "tests.fromOld", "true"