This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 3658e02a7f9d CAMEL-26529: fix hawtio IT - capture nohup PID and
increase startup timeout (#29135)
3658e02a7f9d is described below
commit 3658e02a7f9d13aef209cff7913ef8a3989cbafd
Author: Guillaume Nodet <[email protected]>
AuthorDate: Wed Nov 4 09:41:52 2026 +0100
CAMEL-26529: fix hawtio IT - capture nohup PID and increase startup timeout
(#29135)
Prepared with Hermes Agent on behalf of gnodet.
---
.../src/test/java/org/apache/camel/dsl/jbang/it/JolokiaITCase.java | 4 ++--
.../java/org/apache/camel/test/infra/cli/services/CliService.java | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git
a/dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/JolokiaITCase.java
b/dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/JolokiaITCase.java
index 65c092e322b7..1e5bf34bd90a 100644
---
a/dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/JolokiaITCase.java
+++
b/dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/JolokiaITCase.java
@@ -67,8 +67,8 @@ public class JolokiaITCase extends JBangTestSupport {
checkLogContains("(FromDirectoryRoute) started");
hawtioPid = execNohup("hawtio FromDirectoryRoute");
Awaitility.await()
- .atMost(Duration.ofSeconds(30))
- .pollInterval(Duration.ofSeconds(1))
+ .atMost(Duration.ofSeconds(120))
+ .pollInterval(Duration.ofSeconds(2))
.untilAsserted(() -> Assertions
.assertThat(
execInContainer("curl
http://localhost:8888/hawtio/"))
diff --git
a/test-infra/camel-test-infra-cli/src/main/java/org/apache/camel/test/infra/cli/services/CliService.java
b/test-infra/camel-test-infra-cli/src/main/java/org/apache/camel/test/infra/cli/services/CliService.java
index 99e9d7875966..237471e4d893 100644
---
a/test-infra/camel-test-infra-cli/src/main/java/org/apache/camel/test/infra/cli/services/CliService.java
+++
b/test-infra/camel-test-infra-cli/src/main/java/org/apache/camel/test/infra/cli/services/CliService.java
@@ -52,7 +52,8 @@ public interface CliService extends BeforeEachCallback,
AfterEachCallback, TestS
String executeBackground(String command);
default String executeNohup(String command) {
- return executeGenericCommand("nohup " + getMainCommand() + " " +
command + " &");
+ String output = executeGenericCommand("nohup " + getMainCommand() + "
" + command + " > /dev/null 2>&1 & echo $!");
+ return output.trim();
}
String executeGenericCommand(String command);