From 64f85970918be3fe76c9491ea284de49df800979 Mon Sep 17 00:00:00 2001 From: Campello Manuel <9112949+CampelloManuel@users.noreply.github.com> Date: Sat, 27 Jan 2024 16:52:31 +0100 Subject: [PATCH] disable screenshots in tests --- .github/workflows/android_tests.yml | 4 ---- github_on_emu_started.sh | 8 ++------ 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/android_tests.yml b/.github/workflows/android_tests.yml index c7cb0de5..df323329 100644 --- a/.github/workflows/android_tests.yml +++ b/.github/workflows/android_tests.yml @@ -120,9 +120,5 @@ jobs: with: name: files-api${{ matrix.api-level }}-${{ matrix.target }} path: | - screenshot-desktop.jpg - screenshot-made-cache.png - screenshot-emu-tests-starting.png - emu-video.mp4 logcat-dump.txt app/build/reports/androidTests/** diff --git a/github_on_emu_started.sh b/github_on_emu_started.sh index 52437611..20e71dc9 100644 --- a/github_on_emu_started.sh +++ b/github_on_emu_started.sh @@ -37,10 +37,6 @@ adb shell pm uninstall --user 0 com.nononsenseapps.notepad # by mistake adb shell settings put secure long_press_timeout 3000 -# Take a screenshot of the emulator. See also -# https://developer.android.com/studio/run/advanced-emulator-usage#screenshots -adb emu screenrecord screenshot ./screenshot-emu-tests-starting.png - # disable animations once again, for safety adb shell settings put global window_animation_scale 0 adb shell settings put global transition_animation_scale 0 @@ -68,8 +64,8 @@ function getScreenStreamFromEmu() { } # save the video stream to a file -{ getScreenStreamFromEmu | ffmpeg -i - -s 480x854 -loglevel error \ - -nostats -hide_banner -framerate 15 -bufsize 1M emu-video.mp4 ; } & +# { getScreenStreamFromEmu | ffmpeg -i - -s 480x854 -loglevel error \ +# -nostats -hide_banner -framerate 15 -bufsize 1M emu-video.mp4 ; } & # press "HOME" to close any "system UI not responding" popups still showing. # Notice that these popups appear when the host PC is too slow, so the best solution