From edd4631b75f1cf74eb084d108f8085876b860969 Mon Sep 17 00:00:00 2001 From: Yash Khare Date: Fri, 1 May 2020 17:01:58 +0530 Subject: [PATCH] Screenshot with no writing to SD card --- .github/workflows/coverage.yml | 2 +- contrib/instrumentation.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 59e17753f..83ca3bbbb 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -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 diff --git a/contrib/instrumentation.sh b/contrib/instrumentation.sh index 1649bb9e1..fc69c536f 100644 --- a/contrib/instrumentation.sh +++ b/contrib/instrumentation.sh @@ -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