Fixes for tmux-fish_config.fish

This fails sometimes in high-concurrency scenarios
(build_tools/check.sh), so allow sleeping a bit longer.
This commit is contained in:
Johannes Altmanninger
2025-10-11 15:31:14 +02:00
parent b3a295959d
commit 598e98794c
2 changed files with 15 additions and 1 deletions

View File

@@ -26,6 +26,19 @@ function isolated-tmux-start
or sleep 0.3
end
function sleep-until
set -l cmd $argv[1]
set -l i 0
while [ $i -lt 100 ] && not eval "$cmd" >/dev/null
tmux-sleep
set i (math $i + 1)
end
if [ $i -eq 100 ]
printf '%s\n' "timeout waiting for $cmd" >&2
exit 1
end
end
set -l fish (status fish-path)
isolated-tmux new-session -x 80 -y 10 -d $fish -C '
# This is similar to "tests/interactive.config".