diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-10-01 03:16:48 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-10-01 03:16:48 -0400 |
commit | 8bb6a75193445d387bd64ffb4db144663b68bd7a (patch) | |
tree | c4928aa5f4c19b4f50f92bd773000a4c091b1fb1 /test/lib-blacklist-test.sh | |
parent | 9b6b6dad291e2d62a957a38ace952d98147a83d2 (diff) |
blacklist test: clean up
Diffstat (limited to 'test/lib-blacklist-test.sh')
-rw-r--r-- | test/lib-blacklist-test.sh | 8 |
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 |