Skip to content

Commit db6673e

Browse files
committed
Adopt ReproduceInfoPrinter
1 parent 9a35cb0 commit db6673e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,10 @@ 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-
if (Runtime.version().build().isPresent() && "ea".equalsIgnoreCase(Runtime.version().pre().orElse(""))) {
194-
appendOpt("runtime.java", Runtime.version().feature() + "-ea");
193+
if (Runtime.version().build().isPresent()
194+
&& ("ea".equalsIgnoreCase(Runtime.version().pre().orElse(""))
195+
|| ("rc".equalsIgnoreCase(Runtime.version().pre().orElse(""))))) {
196+
appendOpt("runtime.java", Runtime.version().feature() + "-pre");
195197
appendOpt("runtime.java.build", Integer.toString(Runtime.version().build().get()));
196198
} else {
197199
appendOpt("runtime.java", Integer.toString(Runtime.version().feature()));

0 commit comments

Comments
 (0)