From ba54f82cf53d0155c6756af60a012f8032744945 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 1 Jun 2013 15:24:33 -0600 Subject: Fix tests for networks that have a host on them named "phony". I was using "http://phony" as a URL that would fail to be retrieved. Well, I'm currently on a network (Chick-fil-A Wifi) that returns a web search for unknown hostnames. So, now I use "phony://example.com". --- test/lib-blacklist-test.sh | 4 ++-- test/pkgbuild-check-nonfree-test.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/lib-blacklist-test.sh b/test/lib-blacklist-test.sh index 94f5b27..3ac8e70 100644 --- a/test/lib-blacklist-test.sh +++ b/test/lib-blacklist-test.sh @@ -46,7 +46,7 @@ it_works_with_colons_in_reason() { it_fails_update_when_there_is_no_blacklist_or_network() { mkdir -p $XDG_CONFIG_HOME/libretools - echo "BLACKLIST='http://phony'" >$XDG_CONFIG_HOME/libretools/libretools.conf + echo "BLACKLIST='phony://example.com'" >$XDG_CONFIG_HOME/libretools/libretools.conf libreblacklist update >$tmpdir/stdout 2>$tmpdir/stderr || stat=$? @@ -57,7 +57,7 @@ it_fails_update_when_there_is_no_blacklist_or_network() { it_fails_cat_when_there_is_no_blacklist_or_network() { mkdir -p $XDG_CONFIG_HOME/libretools - echo "BLACKLIST='http://phony'" >$XDG_CONFIG_HOME/libretools/libretools.conf + echo "BLACKLIST='phony://example.com'" >$XDG_CONFIG_HOME/libretools/libretools.conf libreblacklist cat >$tmpdir/stdout 2>$tmpdir/stderr || stat=$? diff --git a/test/pkgbuild-check-nonfree-test.sh b/test/pkgbuild-check-nonfree-test.sh index 5ddd341..e9c37bf 100644 --- a/test/pkgbuild-check-nonfree-test.sh +++ b/test/pkgbuild-check-nonfree-test.sh @@ -55,7 +55,7 @@ it_fails_with_15_for_nonfree_depend() { it_fails_when_there_is_no_blacklist() { mkdir -p $XDG_CONFIG_HOME/libretools - echo "BLACKLIST='http://phony'" >$XDG_CONFIG_HOME/libretools/libretools.conf + echo "BLACKLIST='phony://example.com'" >$XDG_CONFIG_HOME/libretools/libretools.conf rm $XDG_CACHE_HOME/libretools/blacklist.txt $pcn $pcn.d/PKGBUILD.free >$tmpdir/stdout 2>$tmpdir/stderr || stat=$? -- cgit v1.2.3-54-g00ecf