summaryrefslogtreecommitdiffstats
path: root/t/superuser--http.t
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2020-01-07 14:06:55 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2020-01-08 15:48:44 +0100
commit39ca63c4b4c3fc3fc6b92cdb79dc92dce155adc8 (patch)
tree1357587bb2268647adbb226086b024266bdb40b1 /t/superuser--http.t
parent67460c77acc847ab1ee92d0cd20f4f9889c5f906 (diff)
downloadurpmi-39ca63c4b4c3fc3fc6b92cdb79dc92dce155adc8.tar
urpmi-39ca63c4b4c3fc3fc6b92cdb79dc92dce155adc8.tar.gz
urpmi-39ca63c4b4c3fc3fc6b92cdb79dc92dce155adc8.tar.bz2
urpmi-39ca63c4b4c3fc3fc6b92cdb79dc92dce155adc8.tar.xz
urpmi-39ca63c4b4c3fc3fc6b92cdb79dc92dce155adc8.zip
skip tests if we have no supported downloader
as seen in CPAN reports: <<< ...retrieving failed: no webfetch found, supported webfetch are: curl, wget, prozilla, aria2 no metadata found for medium "various" >>> Whic results in: <<< Test Summary Report ------------------- t/superuser--http.t (Wstat: 2560 Tests: 11 Failed: 10) Failed tests: 2-11 Non-zero exit status: 10 Files=40, Tests=3775, 953 wallclock secs ( 1.19 usr 0.08 sys + 309.33 cusr 52.13 csys = 362.73 CPU) Result: FAIL Failed 1/40 test programs. 10/3775 subtests failed. make: *** [Makefile:1155: test_dynamic] Error 255 (/usr/bin/make test exited with 512) CPAN::Reporter: Test result is 'fail', One or more tests failed. >>> And indeed: $ rpm -q curl wget prozilla aria2 package curl is not installed package wget is not installed package prozilla is not installed package aria2 is not installed Should have been done in commit 360f05b8db2029cb62c11f7eddb7fb57f3b774f1
Diffstat (limited to 't/superuser--http.t')
-rw-r--r--t/superuser--http.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/superuser--http.t b/t/superuser--http.t
index 15f0694a..297e7c69 100644
--- a/t/superuser--http.t
+++ b/t/superuser--http.t
@@ -8,6 +8,9 @@ use Cwd 'getcwd';
need_root_and_prepare();
+
+need_downloader();
+
my $url = start_httpd();
my $name = 'various';