mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-24 17:09:48 +00:00
In bash, checking for whether an env variable exists uses the -z test, against a stringified env var, so that the test is actually whether the env var is empty, but not necessarily undefined. We use this to test whether JAVA_HOME is set, to determine whether the bundled jdk should be used. In windows, this test is an actual "undefined" check. This commit brings the behavior on two systems in sync, opting to allow for an empty JAVA_HOME in windows to indicate the bundled jdk should be used. closes #55134
This commit is contained in:
parent
9a9c1a721c
commit
742b69a7dc
Binary file not shown.
@ -243,6 +243,18 @@ public class ArchiveTests extends PackagingTestCase {
|
||||
});
|
||||
}
|
||||
|
||||
public void test54ForceBundledJdkEmptyJavaHome() throws Exception {
|
||||
assumeThat(distribution().hasJdk, is(true));
|
||||
// cleanup from previous test
|
||||
rm(installation.config("elasticsearch.keystore"));
|
||||
|
||||
sh.getEnv().put("JAVA_HOME", "");
|
||||
|
||||
startElasticsearch();
|
||||
ServerUtils.runElasticsearchTests();
|
||||
stopElasticsearch();
|
||||
}
|
||||
|
||||
public void test70CustomPathConfAndJvmOptions() throws Exception {
|
||||
|
||||
final Path tempConf = getTempDir().resolve("esconf-alternate");
|
||||
|
Loading…
x
Reference in New Issue
Block a user