File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
test/framework/src/main/java/org/elasticsearch/test/junit/listeners Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 ()));
You can’t perform that action at this time.
0 commit comments