From 7a556ec6f21f16b528be3fb94f5160e2209c3cbf Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Fri, 16 Apr 2021 13:19:26 -0700 Subject: [PATCH] Additional work on tmux-complete test This removes the relative XDG paths, which could have potentially confused tmux, and also starts the window with the correct size instead of adjusting the size afterwards. --- tests/checks/tmux-complete.fish | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/checks/tmux-complete.fish b/tests/checks/tmux-complete.fish index 6f2fc46c4..fec2ece3d 100644 --- a/tests/checks/tmux-complete.fish +++ b/tests/checks/tmux-complete.fish @@ -3,6 +3,10 @@ # Don't run this on GitHub Actions since it's flaky. #REQUIRES: test "$CI" != true +# Don't inflict relative XDG paths on tmux, or it will be confused. +set -e XDG_DATA_HOME +set -e XDG_CONFIG_HOME + # Isolated tmux. set -g tmpdir (mktemp -d) set -g tmux tmux -S $tmpdir/.tmux-socket -f /dev/null @@ -12,14 +16,13 @@ set -g sleep sleep .1 set fish (realpath $fish) cd $tmpdir -$tmux new-session -d $fish -C ' +$tmux new-session -x 80 -y 10 -d $fish -C ' # This is similar to "tests/interactive.config". function fish_greeting; end function fish_prompt; printf "prompt $status_generation> "; end # No autosuggestion from older history. set fish_history "" ' -$tmux resize-pane -x 80 -y 10 $sleep # Let fish draw a prompt. # Don't escape existing token (#7526).