Skip to content

Commit

Permalink
add some debug for failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
glefloch committed Sep 23, 2020
1 parent 19ca676 commit ebea211
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public static BuildResult of(InputStream input) {
return SUCCESS_OUTCOME;
}, (v1, v2) -> v1)));
result.setOutput(String.join("\n", outputLines));
System.out.println(outputLines);
return result;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public BuildResult runGradleWrapper(File projectDir, String... args) throws IOEx
List<String> command = new LinkedList<>();
command.add(getGradleWrapperCommand());
command.add(GRADLE_NO_DAEMON);
command.add("--info");
command.add("--stacktrace");
command.addAll(Arrays.asList(args));

Expand All @@ -30,6 +31,7 @@ public BuildResult runGradleWrapper(File projectDir, String... args) throws IOEx
.directory(projectDir)
.command(command)
.redirectInput(ProcessBuilder.Redirect.INHERIT)
.redirectError(logOutput)
.redirectOutput(logOutput)
.start();

Expand Down

0 comments on commit ebea211

Please sign in to comment.