From 0ca29d6e9648d9370f314808f5860474532b127a Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Fri, 5 Jan 2018 12:03:12 -0500 Subject: [PATCH 1/2] Fix reproduction info to point to Gradle wrapper With the Gradle wrapper in place, we should point the reproduction info to specify using the Gradle wrapper too. --- .../test/junit/listeners/ReproduceInfoPrinter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ff6efa3830023..cb2c9ff1d2639 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 void testFailure(Failure failure) throws Exception { 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); From 752b6ea081f7998ca88d34b35688024b3ab127b9 Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Fri, 5 Jan 2018 12:17:57 -0500 Subject: [PATCH 2/2] Another reprodution line --- .../org/elasticsearch/gradle/vagrant/VagrantTestPlugin.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 2510620ac712b..5a292a7e85841 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} " } }