From d60ba20ed130c5f4c4d7f22c78fb376bbda3873a Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 29 Sep 2018 20:43:59 -0400 Subject: 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(). --- test/librefetch-test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/librefetch-test.sh') 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 < "$XDG_CONFIG_HOME/pacman/makepkg.conf" -- cgit v1.2.2