summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lib-blacklist-test.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/lib-blacklist-test.sh b/test/lib-blacklist-test.sh
index 9dfd5da..7b06f84 100644
--- a/test/lib-blacklist-test.sh
+++ b/test/lib-blacklist-test.sh
@@ -4,6 +4,8 @@ describe libreblacklist
. ./test-common.sh
+_blacklist_url=https://projects.parabola.nu/blacklist.git/plain/blacklist.txt
+
before() {
_before
}
@@ -81,7 +83,7 @@ it_fails_update_when_BLACKLIST_is_unset() {
it_fails_cat_when_syntax_error_in_conf() {
mkdir -p $XDG_CONFIG_HOME/libretools
# there is a stray single quote in there
- echo "BLACKLIST='https://repo.parabolagnulinux.org/docs/blacklist.txt" >$XDG_CONFIG_HOME/libretools/libretools.conf
+ printf "BLACKLIST='%q\n" "${_blacklist_url}" >$XDG_CONFIG_HOME/libretools/libretools.conf
libreblacklist cat >$tmpdir/stdout 2>$tmpdir/stderr || stat=$?
@@ -93,7 +95,7 @@ it_fails_cat_when_syntax_error_in_conf() {
it_downloads_the_blacklist_as_needed() {
require network || return 0
mkdir -p $XDG_CONFIG_HOME/libretools
- echo "BLACKLIST=https://repo.parabolagnulinux.org/docs/blacklist.txt" >$XDG_CONFIG_HOME/libretools/libretools.conf
+ printf 'BLACKLIST=%q\n' "${_blacklist_url}" >$XDG_CONFIG_HOME/libretools/libretools.conf
libreblacklist cat >$tmpdir/stdout 2>$tmpdir/stderr
@@ -103,7 +105,7 @@ it_downloads_the_blacklist_as_needed() {
it_downloads_the_blacklist_repeatedly() {
require network || return 0
mkdir -p $XDG_CONFIG_HOME/libretools
- echo "BLACKLIST=https://repo.parabolagnulinux.org/docs/blacklist.txt" >$XDG_CONFIG_HOME/libretools/libretools.conf
+ printf 'BLACKLIST=%q\n' "${_blacklist_url}" >$XDG_CONFIG_HOME/libretools/libretools.conf
libreblacklist update
libreblacklist update