From ece89f43aaf4ec6175bfb9fe6aa52ad2fe38d783 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 23 Oct 2021 18:44:33 +0200 Subject: [PATCH] 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. --- tests/test_env.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_env.sh b/tests/test_env.sh index 52728b617..a2f1c50b3 100755 --- a/tests/test_env.sh +++ b/tests/test_env.sh @@ -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).