Skip to content

Commit c1396d3

Browse files
committed
Support running arbitrary commands in test container with docker compose run
1 parent 7e8819b commit c1396d3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

scripts/test.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/usr/bin/env bash
22

33
set -e
4-
set -x
54

6-
uv run pytest tests
5+
command=( "$@" )
6+
if [ "${#command[@]}" -eq 0 ]; then
7+
command=( "pytest" )
8+
fi
9+
10+
set -x
11+
uv run "${command[@]}"

0 commit comments

Comments
 (0)