mirror of
https://github.com/tmux/tmux.git
synced 2026-10-07 18:24:22 +00:00
Fix tests on macOS.
This commit is contained in:
@@ -70,7 +70,6 @@ def wait_file(path, length, timeout=5):
|
||||
|
||||
def respawn(command):
|
||||
run("respawn-window", "-k", "-t", "requests:0", command)
|
||||
time.sleep(0.2)
|
||||
|
||||
def wait_pane(expected, context):
|
||||
end = time.monotonic() + 5
|
||||
|
||||
@@ -23,6 +23,22 @@ fail()
|
||||
exit 1
|
||||
}
|
||||
|
||||
wait_status()
|
||||
{
|
||||
i=0
|
||||
while [ "$i" -lt 100 ]; do
|
||||
screen=$($TMUX2 capture-pane -p -t outer:0.0) || exit 1
|
||||
if printf '%s\n' "$screen" | grep -q 'WINDOW WINDOW WINDOW' &&
|
||||
printf '%s\n' "$screen" | grep -q 'PANE PANE PANE PANE' &&
|
||||
printf '%s\n' "$screen" | grep -q 'CONTROL CONTROL CONTROL'; then
|
||||
return
|
||||
fi
|
||||
sleep 0.05
|
||||
i=$((i + 1))
|
||||
done
|
||||
fail "status lines were not redrawn"
|
||||
}
|
||||
|
||||
mouse()
|
||||
{
|
||||
seq=$(printf '\033[<%s;%s;%s%s' "$1" "$2" "$3" "$4")
|
||||
@@ -80,7 +96,7 @@ $TMUX bind -n MouseDown1Status set -gF @status-range '#{mouse_status_range}' ||
|
||||
$TMUX bind -n MouseDown1Control0 set -gF @status-range '#{mouse_status_range}' || exit 1
|
||||
$TMUX bind -n C-MouseDrag1Status set -g @status-drag status || exit 1
|
||||
$TMUX bind -n C-MouseDrag1Control0 set -g @status-drag control || exit 1
|
||||
sleep 0.5
|
||||
wait_status
|
||||
|
||||
row=1
|
||||
for range in window pane control; do
|
||||
|
||||
@@ -75,7 +75,10 @@ for name, report in reports:
|
||||
"-y", "24", "stty raw -echo; exec cat -v")
|
||||
run("set-option", "-g", "status", "off")
|
||||
run("set-option", "-g", "assume-paste-time", "0")
|
||||
run("set-option", "-s", "escape-time", "1000")
|
||||
if delivery == "expired":
|
||||
run("set-option", "-s", "escape-time", "100")
|
||||
else:
|
||||
run("set-option", "-s", "escape-time", "5000")
|
||||
run("set-option", "-g", "@seen", "")
|
||||
run("bind-key", "-n", "Escape", "set-option", "-gF",
|
||||
"@seen", "#{@seen}E")
|
||||
|
||||
Reference in New Issue
Block a user