mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 10:01:14 -03:00
Fix the tmux-prompt test
The tmux-prompt test was failing when run more than once, because XDG_DATA_HOME has a leading double-dot, causing the uvars file to leak across sessions. Descend more deeply into our tmpdir to isolate our XDG_DATA_HOME.
This commit is contained in:
@@ -2,7 +2,12 @@
|
||||
#REQUIRES: command -v tmux
|
||||
|
||||
# Isolated tmux.
|
||||
set -g tmpdir (mktemp -d)
|
||||
# Note $XDG_CONFIG_HOME typically has a leading double-dot,
|
||||
# so our uvars file will leak across runs; therefore
|
||||
# descend more deeply into the tmpdir.
|
||||
set -g tmpdir (mktemp -d)/inner1/inner2/
|
||||
mkdir -p $tmpdir
|
||||
|
||||
set -g tmux tmux -S $tmpdir/.tmux-socket -f /dev/null
|
||||
|
||||
set -g sleep sleep .1
|
||||
|
||||
Reference in New Issue
Block a user