Mercurial > hg > nginx-tests
diff geoip.t @ 1064:6508aa1cf9cb
Tests: skip geoip tests on hosts without GeoIP IPv6 support.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Wed, 19 Oct 2016 20:55:19 +0300 |
parents | 83357211563e |
children | cf14cfe9ec8c |
line wrap: on
line diff
--- a/geoip.t +++ b/geoip.t @@ -22,7 +22,7 @@ use Test::Nginx; select STDERR; $| = 1; select STDOUT; $| = 1; -my $t = Test::Nginx->new()->has(qw/http http_geoip ipv6/)->plan(20) +my $t = Test::Nginx->new()->has(qw/http http_geoip ipv6/) ->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%% @@ -144,7 +144,7 @@ for my $i (0 .. 31) { $t->write_file('org.dat', $data); $t->write_file('index.html', ''); -$t->run(); +$t->try_run('no inet6 support')->plan(20); ###############################################################################