tests/test_env.sh: fix copy paste error so we export XDG_RUNTIME_DIR

fish might use XDG_RUNTIME_DIR for the uvar notifier fifo, so this
makes sure that tests are isolated.

Also set permissions to comply with the XDG basedir spec.
This commit is contained in:
Johannes Altmanninger 2021-10-23 18:44:33 +02:00
parent 4b46717a91
commit ece89f43aa

View file

@ -46,8 +46,9 @@ export XDG_CONFIG_HOME
mkdir -p $XDG_CONFIG_HOME/fish || die
XDG_RUNTIME_DIR="$homedir/xdg_runtime_dir"
export XDG_CONFIG_HOME
export XDG_RUNTIME_DIR
mkdir -p $XDG_RUNTIME_DIR/fish || die
chmod 700 "$XDG_RUNTIME_DIR"
# Create a temp/scratch directory for tests to use, if they want (tests shouldn't write to a
# shared temp folder).