diff options
Diffstat (limited to 'tests/kill-race.sh')
| -rwxr-xr-x | tests/kill-race.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kill-race.sh b/tests/kill-race.sh index 388c297..d85f654 100755 --- a/tests/kill-race.sh +++ b/tests/kill-race.sh @@ -8,7 +8,7 @@ r() { tmux -u -L $R "$@"; } mkdir -p $D/bin; printf '#!/bin/sh\nexec sleep 100000\n' > $D/bin/pi; chmod +x $D/bin/pi r -f /dev/null new-session -d -s a -n w1 $D/bin/pi; r new-session -d -s b -n w2 $D/bin/pi P=$(r display -p -t a:w1 '#{pane_id}') -start() { DINGGER_TMUX_SOCKET=$R DINGGER_AGENT_SOCKET=$D/hook.sock DINGGER_STATE_DIR=$D/state $BIN watch --interval-secs 30 --no-sounds --no-notifications >/dev/null 2>&1 & DP=$!; for _ in $(seq 50); do [ -S $D/hook.sock ] && break; sleep 0.05; done; } +start() { PI_CODING_AGENT_DIR=$D/pi-agent DINGGER_TMUX_SOCKET=$R DINGGER_AGENT_SOCKET=$D/hook.sock DINGGER_STATE_DIR=$D/state $BIN watch --interval-secs 30 --no-sounds --no-notifications >/dev/null 2>&1 & DP=$!; for _ in $(seq 50); do [ -S $D/hook.sock ] && break; sleep 0.05; done; } hook() { python3 -c " import json,socket; s=socket.socket(socket.AF_UNIX); s.connect('$D/hook.sock') s.sendall((json.dumps({'method':'pane.report_agent','params':{'pane_id':'$P','agent':'pi','state':'$1'}})+'\n').encode())"; } |
