Skip to content

Commit 5a78124

Browse files
Fix DockerTests for dockerUbi (#91901) (#91907)
kill command was not available. bash -c with kill should be used relates #91704 closes #91874 Co-authored-by: Elastic Machine <[email protected]>
1 parent 28fcdb9 commit 5a78124

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qa/os/src/test/java/org/elasticsearch/packaging/test/DockerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,7 @@ public void test600Interrupt() {
12301230
final List<ProcessInfo> infos = ProcessInfo.getProcessInfo(sh, "java");
12311231
final int maxPid = infos.stream().map(i -> i.pid()).max(Integer::compareTo).get();
12321232

1233-
sh.run("kill -int " + maxPid); // send ctrl+c to all java processes
1233+
sh.run("bash -c 'kill -int " + maxPid + "'"); // send ctrl+c to all java processes
12341234
final Result containerLogsAfter = getContainerLogs();
12351235

12361236
assertThat("Container logs should contain stopping ...", containerLogsAfter.stdout(), containsString("stopping ..."));

0 commit comments

Comments
 (0)