diff options
| author | Albin <albin@mullvad.net> | 2022-12-28 14:46:13 +0100 |
|---|---|---|
| committer | Albin <albin@mullvad.net> | 2023-01-10 15:32:37 +0100 |
| commit | 42610bc223085e23181af2e679fce538e4b4b5c8 (patch) | |
| tree | 055e8392d92b65d00cda0022c2574d300cca59f9 /ci | |
| parent | a476c8916579e70e9849f4eb12c45312e4b09aa0 (diff) | |
| download | mullvadvpn-42610bc223085e23181af2e679fce538e4b4b5c8.tar.xz mullvadvpn-42610bc223085e23181af2e679fce538e4b4b5c8.zip | |
Support orchestrator in instrumented test script
Diffstat (limited to 'ci')
| -rwxr-xr-x | ci/run-android-instrumented-tests.sh | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/ci/run-android-instrumented-tests.sh b/ci/run-android-instrumented-tests.sh deleted file mode 100755 index cf29289c3d..0000000000 --- a/ci/run-android-instrumented-tests.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env bash - -APK_BASE_DIR=$1 -LOG_FILE_NAME="mullvad.instrumentation_data_proto" -LOG_FILE_PATH="/sdcard/$LOG_FILE_NAME" -LOG_FAILURE_MESSAGE="FAILURES\!\!\!" - -echo "Running instrumented tests..." -echo "" - -echo "### Ensure uninstalled ###" -adb uninstall net.mullvad.mullvadvpn || echo "App package not installed" -adb uninstall net.mullvad.mullvadvpn.test || echo "Test package not installed" -echo "" - -echo "### Install ###" -adb install -t "$APK_BASE_DIR/debug/app-debug.apk" -adb install "$APK_BASE_DIR/androidTest/debug/app-debug-androidTest.apk" -echo "" - -echo "### Start tests ###" -adb shell am instrument -w -f "$LOG_FILE_NAME" net.mullvad.mullvadvpn.test/androidx.test.runner.AndroidJUnitRunner -echo "" - -# Print log so that it shows as part of GitHub Actions logs etc -echo "### Logs ###" -adb shell cat "$LOG_FILE_PATH" - -if adb shell grep -q "$LOG_FAILURE_MESSAGE" "$LOG_FILE_PATH"; then - exit 1 -fi |
