Skip to content

Commit 3936a08

Browse files
authored
Update ReproduceInfoPrinter to correctly print a reproduction line for Lucene & build candidate upgrade tests (#129044) (#129201)
1 parent 3fdc5e2 commit 3936a08

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ public void testFailure(Failure failure) throws Exception {
6565
final String gradlew = Constants.WINDOWS ? "gradlew" : "./gradlew";
6666
final StringBuilder b = new StringBuilder("REPRODUCE WITH: " + gradlew + " ");
6767
String task = System.getProperty("tests.task");
68-
boolean isBwcTest = Boolean.parseBoolean(System.getProperty("tests.bwc", "false"));
68+
boolean isBwcTest = Boolean.parseBoolean(System.getProperty("tests.bwc", "false"))
69+
|| System.getProperty("tests.bwc.main.version") != null
70+
|| System.getProperty("tests.bwc.refspec.main") != null;
6971

7072
// append Gradle test runner test filter string
7173
b.append("\"" + task + "\"");
@@ -174,7 +176,9 @@ private ReproduceErrorMessageBuilder appendESProperties() {
174176
"tests.bwc",
175177
"tests.bwc.version",
176178
"build.snapshot",
177-
"tests.configure_test_clusters_with_one_processor"
179+
"tests.configure_test_clusters_with_one_processor",
180+
"tests.bwc.main.version",
181+
"tests.bwc.refspec.main"
178182
);
179183
if (System.getProperty("tests.jvm.argline") != null && System.getProperty("tests.jvm.argline").isEmpty() == false) {
180184
appendOpt("tests.jvm.argline", "\"" + System.getProperty("tests.jvm.argline") + "\"");

0 commit comments

Comments
 (0)