Skip to content

Commit

Permalink
Run compose stacks with shortened default timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
m90 committed Aug 31, 2023
1 parent e9a2972 commit a4201d0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit a4201d0

Please sign in to comment.