mirror of
https://github.com/tmux/tmux.git
synced 2026-10-16 00:14:23 +00:00
Fix some tests.
This commit is contained in:
@@ -41,8 +41,8 @@ with image_test(sys.argv[1]) as test:
|
||||
|
||||
# Deliver the terminator in two pieces. No image is placed before it.
|
||||
test.emit(b'\033[2J\033[H')
|
||||
for byte in valid[:-1]:
|
||||
test.send(bytes([byte]))
|
||||
# One command keeps process startup overhead within the DCS timeout.
|
||||
test.send(valid[:-1])
|
||||
client.read()
|
||||
assert not client.images(), 'image placed before the DCS terminator'
|
||||
assert test.run('display-message', '-p', '#{cursor_y}') == '0'
|
||||
|
||||
@@ -30,6 +30,10 @@ $TMUX new-session -d -s inner -x 60 -y 12 "printf '$SIXEL_HEADER'; exec sh" ||
|
||||
exit 1
|
||||
$TMUX set -g mouse on || fail "set mouse failed"
|
||||
$TMUX set -g status 2 || fail "set status failed"
|
||||
# Keep both entries visible regardless of the hostname or pane title.
|
||||
$TMUX set -g window-pane-status-format '#P:[pane]' || fail "set pane format failed"
|
||||
$TMUX set -g window-pane-current-status-format '#P:[pane]' ||
|
||||
fail "set current pane format failed"
|
||||
$TMUX split-window -h -t inner 'exec sh' || fail "split-window failed"
|
||||
$TMUX select-pane -t inner.0 || fail "select-pane failed"
|
||||
sleep 0.3
|
||||
@@ -47,7 +51,7 @@ assert_image_reached
|
||||
: >$TMP
|
||||
|
||||
# Locate pane 1's clickable entry in the second (bottom) status line - the
|
||||
# default window-pane-status-format starts with the pane index, so its
|
||||
# window-pane-status-format starts with the pane index, so its
|
||||
# entry is identifiable by the literal text "1:[".
|
||||
STATUSLINE=$($TMUX2 capture-pane -p -t "$OUTER" | tail -1)
|
||||
COL=$(echo "$STATUSLINE" | awk '{print index($0, "1:[")}')
|
||||
|
||||
Reference in New Issue
Block a user