Skip to content

Commit

Permalink
try to fix screen recording on Android as well
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Sep 10, 2024
1 parent bd44b62 commit 8b0967a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ jobs:
- name: Start screen recording of AVD
run: |
adb shell screenrecord /sdcard/screenrecord.mp4 &
echo $! > ~/screenrecord.pid
- name: Run tests
working-directory: ${{ github.workspace }}/e2e
Expand All @@ -162,7 +163,7 @@ jobs:
- name: Stop screen recording of AVD
if: success() || failure()
run: |
adb shell pkill -SIGINT screenrecord || echo "exited with code $?" && exit 0
kill -SIGINT "$(cat ~/screenrecord.pid)"
sleep 5 # prevent video file corruption
adb pull /sdcard/screenrecord.mp4 ~/screenrecord.mp4
Expand Down

0 comments on commit 8b0967a

Please sign in to comment.