mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 21:40:44 +00:00
refactor: simplify docker e2e helpers
This commit is contained in:
@@ -4,7 +4,11 @@
|
||||
# while polling readiness from the host.
|
||||
|
||||
docker_e2e_docker_cmd() {
|
||||
timeout "${DOCKER_COMMAND_TIMEOUT:-600s}" docker "$@"
|
||||
if command -v timeout >/dev/null 2>&1; then
|
||||
timeout "${DOCKER_COMMAND_TIMEOUT:-600s}" docker "$@"
|
||||
return
|
||||
fi
|
||||
docker "$@"
|
||||
}
|
||||
|
||||
docker_e2e_container_running() {
|
||||
|
||||
Reference in New Issue
Block a user