Skip to content

Commit 457ca64

Browse files
committed
Suppress reindex-from-old tests if there are spaces in the path
1 parent d420300 commit 457ca64

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/reindex/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ dependencies {
8383
es090 'org.elasticsearch:elasticsearch:0.90.13@zip'
8484
}
8585

86-
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
87-
// we can't get the pid files in windows so we skip reindex-from-old
86+
if (Os.isFamily(Os.FAMILY_WINDOWS) || rootProject.rootDir.toString().contains(" ")) {
87+
// 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
88+
// in the path. In either case, we skip reindex-from-old.
8889
integTestRunner.systemProperty "tests.fromOld", "false"
8990
} else {
9091
integTestRunner.systemProperty "tests.fromOld", "true"

0 commit comments

Comments
 (0)