8191273: applications/ctw/modules tests fail intermittently
Reviewed-by: kvn, dlong
This commit is contained in:
parent
d4fab56c4f
commit
c647d80e38
@ -123,14 +123,15 @@ public class CtwRunner {
|
|||||||
.collect(Collectors.joining(" "));
|
.collect(Collectors.joining(" "));
|
||||||
String phase = phaseName(classStart);
|
String phase = phaseName(classStart);
|
||||||
Path out = Paths.get(".", phase + ".out");
|
Path out = Paths.get(".", phase + ".out");
|
||||||
|
Path err = Paths.get(".", phase + ".err");
|
||||||
System.out.printf("%s %dms START : [%s]%n" +
|
System.out.printf("%s %dms START : [%s]%n" +
|
||||||
"cout/cerr are redirected to %s%n",
|
"cout/cerr are redirected to %s%n",
|
||||||
phase, TimeUnit.NANOSECONDS.toMillis(System.nanoTime()),
|
phase, TimeUnit.NANOSECONDS.toMillis(System.nanoTime()),
|
||||||
commandLine, out);
|
commandLine, phase);
|
||||||
int exitCode = pb.redirectErrorStream(true)
|
int exitCode = pb.redirectOutput(out.toFile())
|
||||||
.redirectOutput(out.toFile())
|
.redirectError(err.toFile())
|
||||||
.start()
|
.start()
|
||||||
.waitFor();
|
.waitFor();
|
||||||
System.out.printf("%s %dms END : exit code = %d%n",
|
System.out.printf("%s %dms END : exit code = %d%n",
|
||||||
phase, TimeUnit.NANOSECONDS.toMillis(System.nanoTime()),
|
phase, TimeUnit.NANOSECONDS.toMillis(System.nanoTime()),
|
||||||
exitCode);
|
exitCode);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user