From e20171874822af6f2e33d36dc910acce71db162a Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 15 Oct 2026 08:36:53 +0100 Subject: [PATCH] Fix some tests. --- regress/image-sixel-parse.sh | 4 ++-- regress/image-status-pane-click-noflash.sh | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/regress/image-sixel-parse.sh b/regress/image-sixel-parse.sh index dc63b17a4..2ec82111a 100755 --- a/regress/image-sixel-parse.sh +++ b/regress/image-sixel-parse.sh @@ -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' diff --git a/regress/image-status-pane-click-noflash.sh b/regress/image-status-pane-click-noflash.sh index 2b26cfb74..58f30efad 100755 --- a/regress/image-status-pane-click-noflash.sh +++ b/regress/image-status-pane-click-noflash.sh @@ -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:[")}')