Skip to content

Commit

Permalink
disable screenshots in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CampelloManuel committed Jan 27, 2024
1 parent eccf272 commit 64f8597
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/android_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**
8 changes: 2 additions & 6 deletions github_on_emu_started.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 64f8597

Please sign in to comment.