mirror of
https://github.com/block/buzz.git
synced 2026-11-01 23:11:58 +00:00
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 <noreply@anthropic.com> Signed-off-by: Wes <wesbillman@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user