diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-09-30 03:32:31 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-10-01 17:35:22 -0400 |
commit | e0b791c473dafcdc8329db49a4dbd3b7168dc20f (patch) | |
tree | 3a5ba277be9f63606d2bbba455a03155e6dd2e47 /test/test-common.sh | |
parent | 80c4269e7318171a2f85d491b27af9d453cab78c (diff) |
test: Centalize setup in common_setup where it makes sense
Diffstat (limited to 'test/test-common.sh')
-rw-r--r-- | test/test-common.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test-common.sh b/test/test-common.sh index 81c8557..317f159 100644 --- a/test/test-common.sh +++ b/test/test-common.sh @@ -40,6 +40,7 @@ common_before() { export chrootdir="${chrootdir:-$TMPDIR/chroots}" install -Dm644 /dev/stdin "$XDG_CONFIG_HOME"/libretools/libretools.conf <<-eot + WORKDIR=${tmpdir@Q}/workdir BLACKLIST=https://git.parabola.nu/blacklist.git/plain/blacklist.txt eot install -Dm644 /dev/stdin "$XDG_CONFIG_HOME"/libretools/chroot.conf <<-eot @@ -47,6 +48,14 @@ common_before() { CHROOT=default CHROOTEXTRAPKG=() eot + install -Dm644 /dev/stdin "$XDG_CONFIG_HOME"/pacman/makepkg.conf <<-eot + PKGDEST=${tmpdir@Q}/workdir/pkgdest + SRCDEST=${tmpdir@Q}/workdir/srcdest + SRCPKGDEST=${tmpdir@Q}/workdir/srcpkgdest + LOGDEST=${tmpdir@Q}/workdir/logdest + PACKAGER='Bob Tester <tester@localhost>' + eot + mkdir -p -- "$tmpdir"/workdir/{pkg,src,srcpkg,log}dest } common_after() { |