summaryrefslogtreecommitdiffhomepage
path: root/android/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'android/scripts')
-rwxr-xr-xandroid/scripts/run-instrumented-tests-repeat.sh13
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