Skip to content

Commit

Permalink
[XTF-CORE-581] wait only 10 seconds for command and then terminate a …
Browse files Browse the repository at this point in the history
…command
  • Loading branch information
kstekovi committed Sep 18, 2024
1 parent f262f2a commit 00a1eb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/cz/xtf/core/openshift/CLIUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public static String executeCommand(Map<String, String> environmentVariables, St
});

int result = p.waitFor();
// Shutdown the output and error streams
es.shutdown();

if (result == 0) {
String commandOutput = out.get();
Expand Down

0 comments on commit 00a1eb1

Please sign in to comment.