From 8410b6a18b41ff487b1aca486e4df25247e15d4f Mon Sep 17 00:00:00 2001 From: Wes Date: Thu, 15 Oct 2026 14:55:23 -0700 Subject: [PATCH] test(mobile): fail mobile-dev recipe test without DeviceHub support The recipe test stubbed pgrep to succeed for every process, so mobile-dev skipped its launch branch and removing DeviceHub support left it green. Report only DeviceHub as running and make open fail, so the recipe reaches Flutter only if it recognizes DeviceHub. Co-authored-by: Carl <32a2e2c9d428ee08902cab75d956da2c1d235a22d4766b0dd4138bf6e2e5db1d@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 Signed-off-by: Wes --- scripts/test-mobile-gateway-recipes.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/test-mobile-gateway-recipes.sh b/scripts/test-mobile-gateway-recipes.sh index ae6741eb1a..644da07019 100644 --- a/scripts/test-mobile-gateway-recipes.sh +++ b/scripts/test-mobile-gateway-recipes.sh @@ -15,15 +15,21 @@ cat > "$fixture/bin/flutter" <<'STUB' set -eu printf '%s\n' "$@" > "$CALL_LOG" STUB +# Only DeviceHub (Xcode 27) is running and no simulator app can be opened, so +# mobile-dev reaches Flutter only if it recognizes DeviceHub. cat > "$fixture/bin/pgrep" <<'STUB' #!/bin/bash -exit 0 +[[ "$*" == "-x DeviceHub" ]] +STUB +cat > "$fixture/bin/open" <<'STUB' +#!/bin/bash +exit 1 STUB cat > "$fixture/scripts/mobile-worktree-overrides.sh" <<'STUB' #!/bin/bash exit 0 STUB -chmod +x "$fixture/bin/flutter" "$fixture/bin/pgrep" "$fixture/scripts/mobile-worktree-overrides.sh" +chmod +x "$fixture/bin/flutter" "$fixture/bin/pgrep" "$fixture/bin/open" "$fixture/scripts/mobile-worktree-overrides.sh" export PATH="$fixture/bin:$PATH" export CALL_LOG="$fixture/arguments" unset BUZZ_PUSH_GATEWAY_URL