Skip to content

Commit ad442f5

Browse files
authored
Fixed placeholder bug (#4116)
1 parent e4ae347 commit ad442f5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/run-ios-ui-tests.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ auto_select_destination() {
201201
done
202202
[ "$platform" != "iOS Simulator" ] && continue
203203
[ -z "$id" ] && continue
204+
# Skip placeholder device IDs
205+
case "$id" in
206+
*Placeholder*|*placeholder*) continue ;;
207+
esac
204208
priority=0
205209
case "$(printf '%s' "$name" | tr 'A-Z' 'a-z')" in
206210
*iphone*) priority=2 ;;
@@ -265,6 +269,10 @@ fallback_sim_destination() {
265269
state="$(trim_whitespace "$state")"
266270
[ -z "$name" ] && continue
267271
[ -z "$id" ] && continue
272+
# Skip placeholder device IDs
273+
case "$id" in
274+
*Placeholder*|*placeholder*) continue ;;
275+
esac
268276

269277
lower_name="$(printf '%s' "$name" | tr 'A-Z' 'a-z')"
270278
case "$lower_name" in

0 commit comments

Comments
 (0)