From 968d8e413a8d3ceca9e968349f0232a198b6ebf5 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Tue, 9 Nov 2021 17:44:49 +0000 Subject: [PATCH] using adb root for pulling off emulator files as per https://github.com/ReactiveCircus/android-emulator-runner/issues/102#issuecomment-963866536 - also uses emulated directory instead of sdcard --- .github/workflows/sanity_test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sanity_test.yml b/.github/workflows/sanity_test.yml index 95487dc81f..aed3e70c72 100644 --- a/.github/workflows/sanity_test.yml +++ b/.github/workflows/sanity_test.yml @@ -59,7 +59,9 @@ jobs: with: emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none api-level: ${{ matrix.api-level }} - script: ./gradlew $CI_GRADLE_ARG_PROPERTIES -PallWarningsAsErrors=false connectedGplayDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=im.vector.app.ui.UiAllScreensSanityTest || adb pull sdcard/Pictures/failure_screenshots + script: | + adb root + ./gradlew $CI_GRADLE_ARG_PROPERTIES -PallWarningsAsErrors=false connectedGplayDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=im.vector.app.ui.UiAllScreensSanityTest || adb pull storage/emulated/0/Pictures/failure_screenshots - uses: actions/upload-artifact@v2 with: name: failure-screenshots