summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-09-06 15:59:25 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-09-11 15:23:29 -0400
commited70c3d52624dbe2be6a4d8e7f8858f94258c8bb (patch)
tree7212c5eabfe871f4de0c1600b25bf43e6a221efc /test
parent18cff8df56857d1ee935b4dce560b497adc722ba (diff)
test: pkgbuild-check-nonfree-test.sh: use test-common.sh
Diffstat (limited to 'test')
-rw-r--r--test/pkgbuild-check-nonfree-test.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/pkgbuild-check-nonfree-test.sh b/test/pkgbuild-check-nonfree-test.sh
index 86769c4..dd03aab 100644
--- a/test/pkgbuild-check-nonfree-test.sh
+++ b/test/pkgbuild-check-nonfree-test.sh
@@ -5,9 +5,10 @@ pcn=pkgbuild-check-nonfree
describe $pcn
+. ./test-common.sh
+
before() {
- tmpdir=$(mktemp -d --tmpdir test-pkgbuild-check-nonfree.XXXXXXXXXXXX)
- stat=0
+ _before
mkdir -p $XDG_CONFIG_HOME/libretools
echo "BLACKLIST='phony://example.com'" >$XDG_CONFIG_HOME/libretools/libretools.conf
@@ -19,7 +20,7 @@ before() {
}
after() {
- rm -rf -- "$tmpdir" "$XDG_CACHE_HOME" "$XDG_CONFIG_HOME"
+ _after
}
it_displays_usage_text() {