|
@@ -151,6 +151,9 @@ class NodeInfo {
|
|
|
args.addAll("-E", "node.portsfile=true")
|
|
|
String collectedSystemProperties = config.systemProperties.collect { key, value -> "-D${key}=${value}" }.join(" ")
|
|
|
String esJavaOpts = config.jvmArgs.isEmpty() ? collectedSystemProperties : collectedSystemProperties + " " + config.jvmArgs
|
|
|
+ if (Boolean.parseBoolean(System.getProperty('tests.asserts', 'true'))) {
|
|
|
+ esJavaOpts += " -ea -esa"
|
|
|
+ }
|
|
|
env.put('ES_JAVA_OPTS', esJavaOpts)
|
|
|
for (Map.Entry<String, String> property : System.properties.entrySet()) {
|
|
|
if (property.key.startsWith('tests.es.')) {
|