Screenshot with no writing to SD card

This commit is contained in:
Yash Khare 2020-05-01 17:01:58 +05:30
parent 159a552b50
commit edd4631b75
2 changed files with 2 additions and 3 deletions

View File

@ -32,7 +32,7 @@ jobs:
script: bash contrib/instrumentation.sh
- name: Upload screenshot result
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.api-level }}
path: screencap.png

View File

@ -3,6 +3,5 @@
adb logcat -c
adb logcat *:E -v color &
./gradlew jacocoInstrumentationTestReport
adb shell screencap -p /sdcard/screencap.png
adb pull /sdcard/screencap.png
adb exec-out screencap -p > screencap.png
find screencap.png