Skip to content

Commit

Permalink
Add support for tests.jvm.argline in testclusters (#46540)
Browse files Browse the repository at this point in the history
We have CI jobs that make use of this for testing alternative garbadge
collectors.
  • Loading branch information
alpar-t committed Sep 12, 2019
1 parent d1aa610 commit de3f669
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -599,8 +599,11 @@ private Map<String, String> getESEnvironment() {
})
.collect(Collectors.joining(" "));
}
defaultEnv.put("ES_JAVA_OPTS", "-Xms512m -Xmx512m -ea -esa" +
systemPropertiesString + jvmArgsString
defaultEnv.put("ES_JAVA_OPTS", "-Xms512m -Xmx512m -ea -esa " +
systemPropertiesString + " " +
jvmArgsString + " " +
// Support passing in additional JVM arguments
System.getProperty("tests.jvm.argline", "")
);
defaultEnv.put("ES_TMPDIR", tmpDir.toString());
// Windows requires this as it defaults to `c:\windows` despite ES_TMPDIR
Expand Down

0 comments on commit de3f669

Please sign in to comment.