diff --git a/test/util.sh b/test/util.sh index 9ee1955e..6a733dd5 100644 --- a/test/util.sh +++ b/test/util.sh @@ -26,3 +26,21 @@ expect_running_containers () { fi pass "$1 containers running." } + +docker() { + case $1 in + compose) + shift + case $1 in) + run) + command docker compose run --timeout 3 "$@" + ;; + *) + command docker compose "$@";; + ;; + esac + ;; + *) + command docker "$@";; + esac +}