From 8bb6a75193445d387bd64ffb4db144663b68bd7a Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 1 Oct 2014 03:16:48 -0400 Subject: blacklist test: clean up --- test/lib-blacklist-test.sh | 8 +++++--- 1 file 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 -- cgit v1.2.2