Skip to content

Commit 0ac6ce5

Browse files
committed
single-line maestro as test runner executes scripts as individual lines
1 parent 81e7e51 commit 0ac6ce5

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

.github/workflows/integration-tests-ui-critical.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -138,19 +138,14 @@ jobs:
138138
adb uninstall io.sentry.uitest.android.critical || echo "Already uninstalled (or not found)"
139139
adb install -r -d "${{env.APK_NAME}}"
140140
141-
adb shell screenrecord --size 720x1280 --bit-rate 2000000 /sdcard/recording.mp4 &
142-
SCREENRECORD_PID=$!
143-
144-
set +e
145-
maestro test "${{env.BASE_PATH}}/maestro" --debug-output "${{env.BASE_PATH}}/maestro-logs"
146-
MAESTRO_EXIT_CODE=$?
147-
set -e
148-
149-
kill $SCREENRECORD_PID 2>/dev/null || true
150-
wait $SCREENRECORD_PID 2>/dev/null || true
151-
adb pull /sdcard/recording.mp4 "${{env.BASE_PATH}}/maestro-logs/recording.mp4"
152-
153-
exit $MAESTRO_EXIT_CODE
141+
adb shell screenrecord --size 720x1280 --bit-rate 2000000 /sdcard/recording.mp4 & \
142+
SCREENRECORD_PID=$!; \
143+
maestro test "${{env.BASE_PATH}}/maestro" --debug-output "${{env.BASE_PATH}}/maestro-logs" || MAESTRO_EXIT_CODE=$?; \
144+
kill $SCREENRECORD_PID 2>/dev/null || true; \
145+
wait $SCREENRECORD_PID 2>/dev/null || true; \
146+
adb pull /sdcard/recording.mp4 "${{env.BASE_PATH}}/maestro-logs/recording.mp4" || true; \
147+
adb shell rm /sdcard/recording.mp4 || true; \
148+
exit ${MAESTRO_EXIT_CODE:-0}
154149
155150
- name: Upload Maestro test results
156151
if: failure()

0 commit comments

Comments
 (0)