diff --git a/.github/workflows/scripts/maestro-local-with-screen-recording.sh b/.github/workflows/scripts/maestro-local-with-screen-recording.sh index c3db44045e..b4a61fea44 100644 --- a/.github/workflows/scripts/maestro-local-with-screen-recording.sh +++ b/.github/workflows/scripts/maestro-local-with-screen-recording.sh @@ -10,7 +10,7 @@ adb install -r $1 set -x echo "Starting the screen recording..." -adb shell "recording=0; while true; do screenrecord --bugreport /data/local/tmp/recordings/testRecording$recording.mp4; ((recording++)); done & echo \$! > /data/local/tmp/screenrecord_pid.txt" & +adb shell "recording=0; mkdir -p /data/local/tmp/recordings; while true; do screenrecord --bugreport /data/local/tmp/recordings/testRecording$recording.mp4; ((recording++)); done & echo \$! > /data/local/tmp/screenrecord_pid.txt" & set +e ~/.maestro/bin/maestro test .maestro/allTests.yaml TEST_STATUS=$?