Skip to content

Commit 20d2a01

Browse files
authored
Fix: Include tests.jvmargs in "Reproduce with" output (#14742)
Appended tests.jvmargs from system properties to support accurate reproduction lines.
1 parent d7a483c commit 20d2a01

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lucene/test-framework/src/java/org/apache/lucene/tests/util/RunListenerPrintReproduceInfo.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ private void reportAdditionalFailureInfo(final String testName) {
188188
// Pass the master seed.
189189
addVmOpt(b, "tests.seed", RandomizedContext.current().getRunnerSeedAsString());
190190

191+
addVmOpt(b, "tests.jvmargs", System.getProperty("tests.jvmargs"));
192+
191193
// Test groups and multipliers.
192194
if (RANDOM_MULTIPLIER != LuceneTestCase.defaultRandomMultiplier())
193195
addVmOpt(b, "tests.multiplier", RANDOM_MULTIPLIER);

0 commit comments

Comments
 (0)