diff options
| author | Albin <albin@mullvad.net> | 2023-02-02 11:01:59 +0100 |
|---|---|---|
| committer | Albin <albin@mullvad.net> | 2023-02-02 11:08:49 +0100 |
| commit | 4a7386533f20326684facc4077e380905d52fb93 (patch) | |
| tree | e0804d689cadcf500c4a7fb287ff54203e54368f /android/scripts | |
| parent | f79b83d5957bbbc83c4e4eeea61d741b642969dd (diff) | |
| download | mullvadvpn-4a7386533f20326684facc4077e380905d52fb93.tar.xz mullvadvpn-4a7386533f20326684facc4077e380905d52fb93.zip | |
Add helper script to run instrumented tests on repeat
Diffstat (limited to 'android/scripts')
| -rwxr-xr-x | android/scripts/run-instrumented-tests-repeat.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/android/scripts/run-instrumented-tests-repeat.sh b/android/scripts/run-instrumented-tests-repeat.sh new file mode 100755 index 0000000000..146cbf3d05 --- /dev/null +++ b/android/scripts/run-instrumented-tests-repeat.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +set -eu + +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +cd "$SCRIPT_DIR" + +TEST_TYPE=$1 +REPEAT_COUNT=$2 + +for ((i=1; i <= REPEAT_COUNT; i++)) +do + echo "### Run $i ###" + ./run-instrumented-tests.sh "$TEST_TYPE" +done |
