From ed70c3d52624dbe2be6a4d8e7f8858f94258c8bb Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 6 Sep 2013 15:59:25 -0400 Subject: test: pkgbuild-check-nonfree-test.sh: use test-common.sh --- test/pkgbuild-check-nonfree-test.sh | 7 ++++--- 1 file 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() { -- cgit v1.2.3-54-g00ecf