From 4af6d68e2d8b856d91fa5527216ea3db04556086 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 10 Dec 2021 15:11:29 +0000 Subject: [PATCH] fish: Avoid valgrind test from creating fish/.cache Work around for https://bugzilla.redhat.com/show_bug.cgi?id=2031135 --- fish/test-tilde.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fish/test-tilde.sh b/fish/test-tilde.sh index 77526384b..8db339ff0 100755 --- a/fish/test-tilde.sh +++ b/fish/test-tilde.sh @@ -26,6 +26,14 @@ set -e $TEST_FUNCTIONS skip_if_skipped +# Set XDG_CACHE_HOME correctly, unless set already. See: +# https://bugzilla.redhat.com/show_bug.cgi?id=2031135 +if [ "x$XDG_CACHE_HOME" = "x" ] && [ "x$HOME" != "x" ]; then + XDG_CACHE_HOME=$HOME/.cache + export XDG_CACHE_HOME + echo XDG_CACHE_HOME=$XDG_CACHE_HOME +fi + # Don't rely on $HOME being set when this script is called. HOME=$(pwd) export HOME