mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8308910: Allow executeAndLog to accept running process
Reviewed-by: ccheung, iklam
(cherry picked from commit 024d9b131d)
This commit is contained in:
committed by
Vitaly Provodin
parent
7703b7df22
commit
a006a7d290
@@ -671,11 +671,14 @@ public class CDSTestUtils {
|
||||
|
||||
// ============================= Logging
|
||||
public static OutputAnalyzer executeAndLog(ProcessBuilder pb, String logName) throws Exception {
|
||||
handleCDSRuntimeOptions(pb);
|
||||
return executeAndLog(pb.start(), logName);
|
||||
}
|
||||
|
||||
public static OutputAnalyzer executeAndLog(Process process, String logName) throws Exception {
|
||||
long started = System.currentTimeMillis();
|
||||
|
||||
handleCDSRuntimeOptions(pb);
|
||||
|
||||
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
||||
OutputAnalyzer output = new OutputAnalyzer(process);
|
||||
String logFileNameStem =
|
||||
String.format("%04d", getNextLogCounter()) + "-" + logName;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user