Skip to content

Commit

Permalink
ITs: fix run-tests script
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeny Malygin <emalygin@bloomberg.net>
  • Loading branch information
678098 committed Jul 10, 2024
1 parent 346b9c3 commit 90cca6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/integration-tests/run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ set -e

PRESET="legacy_mode or fsm_mode"

if [ -n "$1" ]; then
PRESET="$1"
if [[ -n "$1" ]] && ! [[ "$1" == -* ]]; then
PRESET=shift
echo "Use IT preset '$PRESET' from the script argument"
elif [ -n "$BLAZINGMQ_IT_PRESET" ]; then
PRESET=$BLAZINGMQ_IT_PRESET
Expand All @@ -35,4 +35,4 @@ repo_dir=${repo_dir%/src/*}
export PYTHONPATH=$repo_dir/src/python:$PYTHONPATH
cd "$repo_dir/src/integration-tests"

python3 -m pytest -m "$PRESET" "${@: 2}"
python3 -m pytest -m "$PRESET" "$@"

0 comments on commit 90cca6f

Please sign in to comment.