summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-10-01 16:50:35 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-10-01 16:50:35 -0400
commit42ed1183c123e9afb7fddadbbc4e62d89f82b63d (patch)
treecb0ff8ce018ac2a794fb9ca5063f99dd01c19c24 /test
parent8bb6a75193445d387bd64ffb4db144663b68bd7a (diff)
conf.sh: make sysconfdir overridable at runtime, use this for testingv20141001
Diffstat (limited to 'test')
-rwxr-xr-xtest/testenv3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/testenv b/test/testenv
index c1b52b0..56b56fb 100755
--- a/test/testenv
+++ b/test/testenv
@@ -45,10 +45,11 @@ export XBS_LIBDIR="$destdir/usr/lib/xbs"
export HOME=$TMPDIR/home
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config"
+export _librelib_conf_sh_sysconfdir="$destdir/etc"
# Hack to respect our variables in sudo
_sudo() {
- local vars=(TMPDIR PATH LIBRETOOLS_LIBDIR XDG_CACHE_HOME XDG_CONFIG_HOME)
+ local vars=(TMPDIR PATH LIBRETOOLS_LIBDIR XDG_CACHE_HOME XDG_CONFIG_HOME _librelib_conf_sh_sysconfdir)
local args=()
local var
for var in "${vars[@]}"; do