Skip to content

Commit 69faaa7

Browse files
move adb recovery commands into emulator runner step
1 parent 4b8bf30 commit 69faaa7

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/screenshot-tests.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,6 @@ jobs:
111111
nohup npm run ss-test > /tmp/ss-test.log 2>&1 &
112112
echo "SS_TEST_PID=$!" >> "$GITHUB_ENV"
113113
114-
- name: Reset adb before emulator start
115-
run: |
116-
adb kill-server || true
117-
adb start-server
118-
adb devices
119-
120114
# Android emulator boot step
121115
- name: Run Android app on emulator
122116
uses: reactivecircus/android-emulator-runner@v2
@@ -128,6 +122,8 @@ jobs:
128122
emulator-options: -no-snapshot -no-window -noaudio -no-boot-anim -gpu swiftshader_indirect -camera-back none -camera-front none
129123
emulator-boot-timeout: 1200
130124
script: |
125+
adb kill-server || true
126+
adb start-server
131127
adb devices
132128
adb reconnect offline || true
133129
adb wait-for-device

0 commit comments

Comments
 (0)