Skip to content

Commit 55e0639

Browse files
committed
Attempt to fix screenshotting
1 parent 343b8bf commit 55e0639

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/sanity_test.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,12 @@ jobs:
6565
emulator-build: 7425822 # workaround to emulator bug: https://github.com./ReactiveCircus/android-emulator-runner/issues/160
6666
script: |
6767
adb root
68+
adb shell mkdir -p storage/emulated/0/Pictures/failure_screenshot
6869
adb logcat -c
6970
touch emulator.log
7071
chmod 777 emulator.log
7172
adb logcat >> emulator.log &
72-
./gradlew $CI_GRADLE_ARG_PROPERTIES -PallWarningsAsErrors=false connectedGplayDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=im.vector.app.ui.UiAllScreensSanityTest || adb pull storage/emulated/0/Pictures/failure_screenshots
73+
./gradlew $CI_GRADLE_ARG_PROPERTIES -PallWarningsAsErrors=false connectedGplayDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=im.vector.app.ui.UiAllScreensSanityTest || (adb pull storage/emulated/0/Pictures/failure_screenshot && exit 1)
7374
- name: Upload Test Report Log
7475
uses: actions/upload-artifact@v2
7576
with:

0 commit comments

Comments
 (0)