summaryrefslogtreecommitdiff
path: root/test/librefetch-test.sh
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-09-29 20:43:59 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-10-01 17:35:22 -0400
commitd60ba20ed130c5f4c4d7f22c78fb376bbda3873a (patch)
tree53a76235db404e85c8c214d7b996dca966cb9bcb /test/librefetch-test.sh
parent9520cb3a3da4b67db36242b5efe21ab5f0363ed8 (diff)
test: test-common.bash: Remove hooks from before()
Instead, make the default before() an alias for common_before(), which test files can call if they override before().
Diffstat (limited to 'test/librefetch-test.sh')
-rw-r--r--test/librefetch-test.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/librefetch-test.sh b/test/librefetch-test.sh
index 43b34fc..d734b41 100644
--- a/test/librefetch-test.sh
+++ b/test/librefetch-test.sh
@@ -6,7 +6,9 @@ describe librefetch
KEYSERVER=hkp://pool.sks-keyservers.net
GPG="gpg --quiet --batch --no-tty --no-permission-warning --keyserver ${KEYSERVER}"
-common_before() {
+before() {
+ common_before
+
mkdir -p "$XDG_CONFIG_HOME"/{pacman,libretools} "$tmpdir/workdir/srcdest"
cat <<EOF > "$XDG_CONFIG_HOME/pacman/makepkg.conf"