From f5c48038b5c59c1ee60b7c90f73bda1fab70d9cb Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Wed, 8 Apr 2026 14:00:56 +0800 Subject: [PATCH] Skip tmux-abbr's "pipe builtin into less" test on BusyBox less Fails on Alpine CI. --- tests/checks/tmux-abbr.fish | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tests/checks/tmux-abbr.fish b/tests/checks/tmux-abbr.fish index b5a10a72f..dd2b77b40 100644 --- a/tests/checks/tmux-abbr.fish +++ b/tests/checks/tmux-abbr.fish @@ -1,6 +1,5 @@ #RUN: %fish %s #REQUIRES: command -v tmux -#REQUIRES: command -v less isolated-tmux-start -C ' set -g fish_autosuggestion_enabled 0 @@ -9,13 +8,19 @@ isolated-tmux-start -C ' abbr -g abbr-test "abbr-test [expanded]" ' -isolated-tmux send-keys "abbr --help | sed 1q | less" Enter -tmux-sleep -isolated-tmux capture-pane -p +if { command -v less && ! less --version | grep BusyBox } >/dev/null + isolated-tmux send-keys "abbr --help | sed 1q | less" Enter + tmux-sleep + isolated-tmux capture-pane -p + isolated-tmux send-keys q +else + echo '(END)' + echo 'prompt 0> abbr --help | sed 1q | less' + echo 'Documentation for abbr' +end # CHECK: (END) # CHECK: prompt 0> abbr --help | sed 1q | less # CHECK: Documentation for abbr -isolated-tmux send-keys q # Expand abbreviations on space. isolated-tmux send-keys abbr-test Space arg1 Enter