File tree 2 files changed +9
-5
lines changed
2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ jobs:
304
304
305
305
instrumented-tests :
306
306
name : Run instrumented tests
307
- runs-on : [self-hosted, android-emulator ]
307
+ runs-on : [self-hosted, android-device ]
308
308
timeout-minutes : 30
309
309
needs : [build-app]
310
310
strategy :
@@ -341,7 +341,7 @@ jobs:
341
341
342
342
instrumented-e2e-tests :
343
343
name : Run instrumented e2e tests
344
- runs-on : [self-hosted, android-emulator ]
344
+ runs-on : [self-hosted, android-device ]
345
345
if : github.event_name == 'schedule' || github.event.inputs.run_e2e_tests == 'true'
346
346
timeout-minutes : 30
347
347
needs : [build-app]
Original file line number Diff line number Diff line change @@ -10,8 +10,10 @@ AUTO_FETCH_TEST_HELPER_APKS=${AUTO_FETCH_TEST_HELPER_APKS:-"false"}
10
10
APK_BASE_DIR=${APK_BASE_DIR:- " $SCRIPT_DIR /.." }
11
11
LOG_FAILURE_MESSAGE=" FAILURES!!!"
12
12
13
- DEFAULT_ORCHESTRATOR_APK_PATH=/tmp/orchestrator.apk
14
- DEFAULT_TEST_SERVICES_APK_PATH=/tmp/test-services.apk
13
+ TEMP_DIR=$( mktemp -d -t test-run-XXXX)
14
+
15
+ DEFAULT_ORCHESTRATOR_APK_PATH=$TEMP_DIR /orchestrator.apk
16
+ DEFAULT_TEST_SERVICES_APK_PATH=$TEMP_DIR /test-services.apk
15
17
16
18
ORCHESTRATOR_URL=https://dl.google.com/android/maven2/androidx/test/orchestrator/1.4.2/orchestrator-1.4.2.apk
17
19
TEST_SERVICES_URL=https://dl.google.com/android/maven2/androidx/test/services/test-services/1.4.2/test-services-1.4.2.apk
@@ -141,7 +143,7 @@ case "$TEST_TYPE" in
141
143
;;
142
144
esac
143
145
144
- LOCAL_TMP_REPORT_PATH=" /tmp /mullvad-$TEST_TYPE -instrumentation-report"
146
+ LOCAL_TMP_REPORT_PATH=" $TEMP_DIR /mullvad-$TEST_TYPE -instrumentation-report"
145
147
INSTRUMENTATION_LOG_FILE_PATH=" $LOCAL_TMP_REPORT_PATH /instrumentation-log.txt"
146
148
LOGCAT_FILE_PATH=" $LOCAL_TMP_REPORT_PATH /logcat.txt"
147
149
LOCAL_SCREENSHOT_PATH=" $LOCAL_TMP_REPORT_PATH /screenshots"
@@ -232,3 +234,5 @@ if grep -q "$LOG_FAILURE_MESSAGE" "$INSTRUMENTATION_LOG_FILE_PATH"; then
232
234
else
233
235
echo " No failures!"
234
236
fi
237
+
238
+ rm -rf " $TEMP_DIR "
You can’t perform that action at this time.
0 commit comments