mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8316693: Simplify at-requires checkDockerSupport()
Reviewed-by: iklam, lmesnik
This commit is contained in:
parent
c1f698d38b
commit
16fd43c5eb
@ -602,9 +602,10 @@ public class VMProps implements Callable<Map<String, String>> {
|
||||
|
||||
private boolean checkDockerSupport() throws IOException, InterruptedException {
|
||||
log("checkDockerSupport(): entering");
|
||||
ProcessBuilder pb = new ProcessBuilder(Container.ENGINE_COMMAND, "ps");
|
||||
Map<String, String> logFileNames = redirectOutputToLogFile("checkDockerSupport(): <container> ps",
|
||||
pb, "container-ps");
|
||||
ProcessBuilder pb = new ProcessBuilder("which", Container.ENGINE_COMMAND);
|
||||
Map<String, String> logFileNames =
|
||||
redirectOutputToLogFile("checkDockerSupport(): which <container-engine>",
|
||||
pb, "which-container");
|
||||
Process p = pb.start();
|
||||
p.waitFor(10, TimeUnit.SECONDS);
|
||||
int exitValue = p.exitValue();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user