mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 02:03:41 +08:00
Enable tmux-complete test in the CI
Just add some extra sleep time so it hopefully also works when the CI system is overloaded. This succeeded >60 times in the CI, without a single failure. In case it legitimately fails again, we should provide simple steps to reproduce the failure interactively (using "tmux attach"). The uvar issue only triggered because two fish are started - one is running the tmux-complete script, the other one is running inside tmux. We could reduce the complexity of this test by writing it in a different language, like sh or python.
This commit is contained in:
parent
b56b230076
commit
c30a7cdfde
|
@ -1,13 +1,12 @@
|
|||
#RUN: %fish -C 'set -g fish %fish' %s
|
||||
#REQUIRES: command -v tmux
|
||||
# Don't run this on GitHub Actions since it's flaky.
|
||||
#REQUIRES: test "$CI" != true
|
||||
|
||||
# Isolated tmux.
|
||||
set -g tmpdir (mktemp -d)
|
||||
set -g tmux tmux -S $tmpdir/.tmux-socket -f /dev/null
|
||||
|
||||
set -g sleep sleep .1
|
||||
set -q CI && set sleep sleep 1
|
||||
|
||||
set fish (builtin realpath $fish)
|
||||
cd $tmpdir
|
||||
|
|
Loading…
Reference in New Issue
Block a user