summaryrefslogtreecommitdiff
path: root/test/pkgbuild-check-nonfree-test.sh
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-06-04 21:57:25 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-06-05 20:06:25 -0600
commit695b9b8af8e2629d460d877abab4bdf216c71df2 (patch)
tree17499f3f1c583612e714fd2e9bbe22241bbd7313 /test/pkgbuild-check-nonfree-test.sh
parentbcf060fec41789af48664605fd1892f3ca477f4c (diff)
fix the tests to work when libretools isn't installed
Diffstat (limited to 'test/pkgbuild-check-nonfree-test.sh')
-rw-r--r--test/pkgbuild-check-nonfree-test.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/pkgbuild-check-nonfree-test.sh b/test/pkgbuild-check-nonfree-test.sh
index e9c37bf..86769c4 100644
--- a/test/pkgbuild-check-nonfree-test.sh
+++ b/test/pkgbuild-check-nonfree-test.sh
@@ -8,6 +8,10 @@ describe $pcn
before() {
tmpdir=$(mktemp -d --tmpdir test-pkgbuild-check-nonfree.XXXXXXXXXXXX)
stat=0
+
+ mkdir -p $XDG_CONFIG_HOME/libretools
+ echo "BLACKLIST='phony://example.com'" >$XDG_CONFIG_HOME/libretools/libretools.conf
+
local blacklist=$XDG_CACHE_HOME/libretools/blacklist.txt
mkdir -p "${blacklist%/*}"
echo 'linux:linux-libre:nonfree blobs and firmwares' >$blacklist