Skip to content
Snippets Groups Projects
Commit 7933e089 authored by dgelessus's avatar dgelessus
Browse files

Merge process stdout/stderr to save one StreamGobbler

parent 2099f757
Branches
Tags
No related merge requests found
......@@ -161,8 +161,6 @@ public class TestUtil {
final Process p = startJVM("", runnerClassName, args);
StreamGobbler stdOut = new StreamGobbler(p.getInputStream());
stdOut.start();
StreamGobbler errOut = new StreamGobbler(p.getErrorStream());
errOut.start();
try {
p.waitFor();
} catch (InterruptedException e) {
......@@ -197,6 +195,7 @@ public class TestUtil {
command.addAll(Arrays.asList(arguments));
ProcessBuilder processBuilder = new ProcessBuilder(command);
processBuilder.redirectErrorStream(true);
Process process = processBuilder.start();
return process;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment