diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/vagrant/VagrantTestPlugin.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/vagrant/VagrantTestPlugin.groovy index 0f55123b5cb..b3cc096ee21 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/vagrant/VagrantTestPlugin.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/vagrant/VagrantTestPlugin.groovy @@ -344,7 +344,7 @@ class VagrantTestPlugin implements Plugin { @Override void afterExecute(Task task, TaskState state) { if (state.failure != null) { - println "REPRODUCE WITH: gradle ${packaging.path} " + + println "REPRODUCE WITH: ./gradlew ${packaging.path} " + "-Dtests.seed=${project.testSeed} " } } diff --git a/test/framework/src/main/java/org/elasticsearch/test/junit/listeners/ReproduceInfoPrinter.java b/test/framework/src/main/java/org/elasticsearch/test/junit/listeners/ReproduceInfoPrinter.java index ff6efa38300..cb2c9ff1d26 100644 --- a/test/framework/src/main/java/org/elasticsearch/test/junit/listeners/ReproduceInfoPrinter.java +++ b/test/framework/src/main/java/org/elasticsearch/test/junit/listeners/ReproduceInfoPrinter.java @@ -71,7 +71,7 @@ public class ReproduceInfoPrinter extends RunListener { return; } - final StringBuilder b = new StringBuilder("REPRODUCE WITH: gradle "); + final StringBuilder b = new StringBuilder("REPRODUCE WITH: ./gradlew "); String task = System.getProperty("tests.task"); // TODO: enforce (intellij still runs the runner?) or use default "test" but that won't work for integ b.append(task);