mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 22:14:59 +00:00
Build: Log a warning if disabling reindex-from-old (#30304)
We disable the reindex-from-old tests if we're running on windows or in a directory that contains a space. This adds a warning to the logs when we do that so that you can tell that it happened. This will be nice to have when looking at CI and will be a hint to anyone developing locally.
This commit is contained in:
parent
038fe1151b
commit
d12e644206
@ -83,9 +83,11 @@ dependencies {
|
|||||||
es090 'org.elasticsearch:elasticsearch:0.90.13@zip'
|
es090 'org.elasticsearch:elasticsearch:0.90.13@zip'
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Os.isFamily(Os.FAMILY_WINDOWS) || rootProject.rootDir.toString().contains(" ")) {
|
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
|
||||||
// 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
|
logger.warn("Disabling reindex-from-old tests because we can't get the pid file on windows")
|
||||||
// in the path. In either case, we skip reindex-from-old.
|
integTestRunner.systemProperty "tests.fromOld", "false"
|
||||||
|
} else if (rootProject.rootDir.toString().contains(" ")) {
|
||||||
|
logger.warn("Disabling reindex-from-old tests because Elasticsearch 1.7 won't start with spaces in the path")
|
||||||
integTestRunner.systemProperty "tests.fromOld", "false"
|
integTestRunner.systemProperty "tests.fromOld", "false"
|
||||||
} else {
|
} else {
|
||||||
integTestRunner.systemProperty "tests.fromOld", "true"
|
integTestRunner.systemProperty "tests.fromOld", "true"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user