|
17 | 17 | # ./run-tests.sh --platform android --update-screenshots .maestro/enrichedInput/flows/core_controls_smoke.yaml |
18 | 18 | # ./run-tests.sh --platform ios --rebuild |
19 | 19 | # |
20 | | -# Uses the local maestro-runner binary: |
21 | | -# Android → --driver devicelab |
22 | | -# iOS → default driver |
| 20 | +# Uses the local maestro-runner binary with the default driver on both platforms. |
23 | 21 |
|
24 | 22 | set -euo pipefail |
25 | 23 |
|
|
67 | 65 |
|
68 | 66 | DEVICE_ID=$("$SETUP" | tee /dev/stderr | grep "^DEVICE_ID=" | cut -d= -f2) |
69 | 67 |
|
70 | | -# Android uses DeviceLab; iOS keeps the runner default driver. |
71 | | -DRIVER_ARGS="" |
72 | | -if [ "$PLATFORM" = android ]; then |
73 | | - DRIVER_ARGS="--driver devicelab" |
74 | | -fi |
75 | | - |
76 | 68 | echo "=== Using maestro-runner: $MAESTRO_BIN ===" |
77 | 69 | "$MAESTRO_BIN" --version || true |
78 | | -if [ -n "$DRIVER_ARGS" ]; then |
79 | | - echo "=== Driver: devicelab (android) ===" |
80 | | -else |
81 | | - echo "=== Driver: default (ios) ===" |
82 | | -fi |
| 70 | +echo "=== Driver: default ===" |
83 | 71 |
|
84 | 72 | app_installed() { |
85 | 73 | if [ "$PLATFORM" = ios ]; then |
@@ -146,14 +134,14 @@ run_maestro() { |
146 | 134 | tmp=$(mktemp) |
147 | 135 | # `script` allocates a pseudo-TTY so the runner keeps |
148 | 136 | # ANSI colors when piped through `tee`. |
149 | | - # Global flags (--device, --driver, --env, tags) come before `test`. |
| 137 | + # Global flags (--device, --env, tags) come before `test`. |
150 | 138 | if [[ "$OSTYPE" == darwin* ]]; then |
151 | 139 | # shellcheck disable=SC2086 |
152 | | - script -q /dev/null "$MAESTRO_BIN" --platform "$PLATFORM" --device "$DEVICE_ID" $DRIVER_ARGS $EXTRA "$@" test $FLOWS 2>&1 | tee "$tmp" |
| 140 | + script -q /dev/null "$MAESTRO_BIN" --platform "$PLATFORM" --device "$DEVICE_ID" $EXTRA "$@" test $FLOWS 2>&1 | tee "$tmp" |
153 | 141 | else |
154 | 142 | local cmd |
155 | 143 | # shellcheck disable=SC2086 |
156 | | - cmd=$(printf '%q ' "$MAESTRO_BIN" --platform "$PLATFORM" --device "$DEVICE_ID" $DRIVER_ARGS $EXTRA "$@" test $FLOWS) |
| 144 | + cmd=$(printf '%q ' "$MAESTRO_BIN" --platform "$PLATFORM" --device "$DEVICE_ID" $EXTRA "$@" test $FLOWS) |
157 | 145 | script -qc "$cmd" /dev/null 2>&1 | tee "$tmp" |
158 | 146 | fi |
159 | 147 | rc=${PIPESTATUS[0]} |
|
0 commit comments