summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2018-09-19 12:10:00 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2018-09-20 01:08:04 +0200
commit360f05b8db2029cb62c11f7eddb7fb57f3b774f1 (patch)
tree4fdb11e668ce37d9445b9d52937f2524929f62b3 /t
parente7b4034e46a5056b6f064a4c2eea11f5c1251d19 (diff)
downloadurpmi-360f05b8db2029cb62c11f7eddb7fb57f3b774f1.tar
urpmi-360f05b8db2029cb62c11f7eddb7fb57f3b774f1.tar.gz
urpmi-360f05b8db2029cb62c11f7eddb7fb57f3b774f1.tar.bz2
urpmi-360f05b8db2029cb62c11f7eddb7fb57f3b774f1.tar.xz
urpmi-360f05b8db2029cb62c11f7eddb7fb57f3b774f1.zip
skip network tests if we don't have a downloader
Diffstat (limited to 't')
-rw-r--r--t/superuser--mirrorlist.t11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/superuser--mirrorlist.t b/t/superuser--mirrorlist.t
index d29974d1..0a0d877a 100644
--- a/t/superuser--mirrorlist.t
+++ b/t/superuser--mirrorlist.t
@@ -5,6 +5,17 @@ use lib '.', 't';
use helper;
use Test::More 'no_plan';
BEGIN { use_ok 'urpm::cfg' }
+my @dl_helpers = qw(wget curl prozilla aria2c);
+my $found;
+foreach (@dl_helpers) {
+ -e "/bin/$_" and $found = 1;
+}
+if (!$found) {
+ warn "SKIPing because we're missing a downloader. We need one of wget∕curl/prozilla/aria2c";
+ #plan skip_all => "*BSD fails those";
+ exit 0;
+}
+
need_root_and_prepare();