summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();