Skip to content

Commit

Permalink
bin/tests: Pass through quoted args
Browse files Browse the repository at this point in the history
  • Loading branch information
twm committed Aug 8, 2024
1 parent ff8f0c8 commit 9c8a4cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/tests
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -e
export LC_ALL="${ENCODING:-en_US.UTF-8}"
export LANG="${ENCODING:-en_US.UTF-8}"
export COVERAGE_PROCESS_START="$(pwd)/pyproject.toml"
COMMAND_ARGS="$@"
COMMAND_ARGS=( "$@" )

# Test the postgres connection
while [ $# -gt 0 ]; do
Expand Down Expand Up @@ -37,7 +37,7 @@ mkdir -p warehouse/admin/static/dist/
mkdir -p warehouse/static/dist/

# Actually run our tests.
python -m coverage run -m pytest --strict-markers $COMMAND_ARGS
python -m coverage run -m pytest --strict-markers "${COMMAND_ARGS[@]}"
python -m coverage combine
python -m coverage html --show-contexts
python -m coverage report -m --fail-under 100

0 comments on commit 9c8a4cc

Please sign in to comment.