Skip to content

Commit 14255a2

Browse files
committed
Fix test reproduce linies when using java ea version
1 parent 160589e commit 14255a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/framework/src/main/java/org/elasticsearch/test/junit/listeners/ReproduceInfoPrinter.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,11 @@ private ReproduceErrorMessageBuilder appendESProperties() {
190190
appendOpt("tests.locale", Locale.getDefault().toLanguageTag());
191191
appendOpt("tests.timezone", TimeZone.getDefault().getID());
192192
appendOpt("tests.distribution", System.getProperty("tests.distribution"));
193-
appendOpt("runtime.java", Integer.toString(Runtime.version().feature()));
194193
if (Runtime.version().build().isPresent() && "ea".equalsIgnoreCase(Runtime.version().pre().orElse(""))) {
194+
appendOpt("runtime.java", Runtime.version().feature() + "-ea");
195195
appendOpt("runtime.java.build", Integer.toString(Runtime.version().build().get()));
196+
} else {
197+
appendOpt("runtime.java", Integer.toString(Runtime.version().feature()));
196198
}
197199
appendOpt(ESTestCase.FIPS_SYSPROP, System.getProperty(ESTestCase.FIPS_SYSPROP));
198200
return this;

0 commit comments

Comments
 (0)