summaryrefslogtreecommitdiff
path: root/test/test-common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-common.sh')
-rwxr-xr-xtest/test-common.sh15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/test-common.sh b/test/test-common.sh
index 478694c..64ff660 100755
--- a/test/test-common.sh
+++ b/test/test-common.sh
@@ -39,13 +39,14 @@ common_before() {
# Configure libretools
export chrootdir="${chrootdir:-$TMPDIR/chroots}"
- mkdir -p "$XDG_CONFIG_HOME"/libretools
-
- echo "BLACKLIST=https://git.parabola.nu/blacklist.git/plain/blacklist.txt" >"$XDG_CONFIG_HOME"/libretools/libretools.conf
-
- printf 'CHROOTDIR=%q\n' "${chrootdir}" > "$XDG_CONFIG_HOME"/libretools/chroot.conf
- printf 'CHROOT=%q\n' default >> "$XDG_CONFIG_HOME"/libretools/chroot.conf
- echo "CHROOTEXTRAPKG=()" >> "$XDG_CONFIG_HOME"/libretools/chroot.conf
+ install -Dm644 /dev/stdin "$XDG_CONFIG_HOME"/libretools/libretools.conf <<-eot
+ BLACKLIST=https://git.parabola.nu/blacklist.git/plain/blacklist.txt
+ eot
+ install -Dm644 /dev/stdin "$XDG_CONFIG_HOME"/libretools/chroot.conf <<-eot
+ CHROOTDIR=${chrootdir@Q}
+ CHROOT=default
+ CHROOTEXTRAPKG=()
+ eot
}
common_after() {