diff options
| author | Albin <albin@mullvad.net> | 2024-02-28 09:49:26 +0100 |
|---|---|---|
| committer | Albin <albin@mullvad.net> | 2024-03-01 15:27:02 +0100 |
| commit | af3feca42687b0681444fd3f4cf5bafa95bdb183 (patch) | |
| tree | 5ecdcc8315f7122acbacb2ce5819b644530b73f8 /android | |
| parent | 22953bb2e04a1d6a7d299ac90e8ffc09f377bda6 (diff) | |
| download | mullvadvpn-af3feca42687b0681444fd3f4cf5bafa95bdb183.tar.xz mullvadvpn-af3feca42687b0681444fd3f4cf5bafa95bdb183.zip | |
Fix argument parsing in test repeat script
Diffstat (limited to 'android')
| -rwxr-xr-x | android/scripts/run-instrumented-tests-repeat.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/android/scripts/run-instrumented-tests-repeat.sh b/android/scripts/run-instrumented-tests-repeat.sh index 146cbf3d05..2db1ba7c9a 100755 --- a/android/scripts/run-instrumented-tests-repeat.sh +++ b/android/scripts/run-instrumented-tests-repeat.sh @@ -1,15 +1,22 @@ #!/usr/bin/env bash +# Help script to invoke run-instrumented-tests.sh multiple times. +# +# Usage: +# run-instrumented-tests-repeat.sh <repeat-count> [<args>] +# +# Example: +# run-instrumented-tests-repeat.sh 2 --test-type mockapi --infra-flavor prod --billing-flavor oss + set -eu SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd "$SCRIPT_DIR" -TEST_TYPE=$1 -REPEAT_COUNT=$2 +REPEAT_COUNT=$1 for ((i=1; i <= REPEAT_COUNT; i++)) do echo "### Run $i ###" - ./run-instrumented-tests.sh "$TEST_TYPE" + ./run-instrumented-tests.sh "${@:2}" done |
