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:
parent
1361a5f68c
commit
92d50414c4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user