summaryrefslogtreecommitdiff
path: root/test/librefetch-test.sh
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-04-10 22:31:02 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-04-11 13:02:28 -0400
commit9d90d48c9d01fa45d1a363fc01d0a1c2ffc9e790 (patch)
tree05bb9b11c18c21ce8182e8ff0936bda8a0714acd /test/librefetch-test.sh
parent2a10922b475d5a78e9bdaf8a52768c767404bea0 (diff)
test/: Tidy before()/after() definitions.
Diffstat (limited to 'test/librefetch-test.sh')
-rw-r--r--test/librefetch-test.sh9
1 files changed, 1 insertions, 8 deletions
diff --git a/test/librefetch-test.sh b/test/librefetch-test.sh
index f10ee7f..6871be1 100644
--- a/test/librefetch-test.sh
+++ b/test/librefetch-test.sh
@@ -1,15 +1,12 @@
#!/usr/bin/env roundup
describe librefetch
-
. ./test-common.sh
KEYSERVER=hkp://pool.sks-keyservers.net
GPG="gpg --quiet --batch --no-tty --no-permission-warning --keyserver ${KEYSERVER}"
-before() {
- _before
-
+common_before() {
mkdir -p "$XDG_CONFIG_HOME"/{pacman,libretools} "$tmpdir/srcdest"
cat <<EOF > "$XDG_CONFIG_HOME/pacman/makepkg.conf"
@@ -44,10 +41,6 @@ EOF
| $GPG --gen-key 2>/dev/null
}
-after() {
- _after
-}
-
it_displays_help() {
LC_ALL=C librefetch -h >$tmpdir/stdout 2>$tmpdir/stderr