mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
fish: Avoid valgrind test from creating fish/.cache
Work around for https://bugzilla.redhat.com/show_bug.cgi?id=2031135
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user