Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tests/fm-secondmate-harness.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -572,11 +572,13 @@ meta_field() { grep "^$2=" "$1" 2>/dev/null | tail -1 | cut -d= -f2-; }
# `send-keys -l <cmd>` launch command into FM_FAKE_LAUNCH_LOG, mirroring the
# capture technique in fm-spawn-dispatch-profile.test.sh so the constructed
# launch command (not just meta) can be asserted on. Also answers the
# `#{pane_current_path}` probe from FM_FAKE_PANE_PATH so this same stub works
# for a crew/scout (non-secondmate) spawn's treehouse-worktree wait loop.
# `#{pane_current_path}` probe from FM_FAKE_PANE_PATH, and carries the shared
# lease-capable fake treehouse, so this same stub set works for a crew/scout
# (non-secondmate) spawn's leased-worktree acquisition and confirmation.
make_launch_capturing_tmux() {
local dir=$1 fakebin="$1/fakebin"
mkdir -p "$fakebin"
fm_fake_treehouse "$fakebin"
cat > "$fakebin/tmux" <<'SH'
#!/usr/bin/env bash
set -u
Expand Down
Loading