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.

Relates #28104
This commit is contained in:
Jason Tedor 2018-01-06 08:47:23 -05:00 committed by GitHub
parent f999d639be
commit d712f581ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -344,7 +344,7 @@ class VagrantTestPlugin implements Plugin<Project> {
@Override @Override
void afterExecute(Task task, TaskState state) { void afterExecute(Task task, TaskState state) {
if (state.failure != null) { if (state.failure != null) {
println "REPRODUCE WITH: gradle ${packaging.path} " + println "REPRODUCE WITH: ./gradlew ${packaging.path} " +
"-Dtests.seed=${project.testSeed} " "-Dtests.seed=${project.testSeed} "
} }
} }

View File

@ -71,7 +71,7 @@ public class ReproduceInfoPrinter extends RunListener {
return; return;
} }
final StringBuilder b = new StringBuilder("REPRODUCE WITH: gradle "); final StringBuilder b = new StringBuilder("REPRODUCE WITH: ./gradlew ");
String task = System.getProperty("tests.task"); String task = System.getProperty("tests.task");
// TODO: enforce (intellij still runs the runner?) or use default "test" but that won't work for integ // TODO: enforce (intellij still runs the runner?) or use default "test" but that won't work for integ
b.append(task); b.append(task);