summaryrefslogtreecommitdiffstats
path: root/t/superuser--suggests.t
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2020-01-15 02:33:20 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2020-04-09 17:50:35 +0200
commit6631840bc112151fb8bd588e20aee8742b1c42eb (patch)
tree00b1f5cd25dfe7dc9c2adc80ddc7c48371b7c43b /t/superuser--suggests.t
parentdf855def6d9c9c2a5820d85e06df9071e796a03d (diff)
downloadurpmi-6631840bc112151fb8bd588e20aee8742b1c42eb.tar
urpmi-6631840bc112151fb8bd588e20aee8742b1c42eb.tar.gz
urpmi-6631840bc112151fb8bd588e20aee8742b1c42eb.tar.bz2
urpmi-6631840bc112151fb8bd588e20aee8742b1c42eb.tar.xz
urpmi-6631840bc112151fb8bd588e20aee8742b1c42eb.zip
cpan_testers: skip weak deps test on CentOS 7 (unsupported)
rationale: CentOS 7's rpm doesn't support eg Recommendstag, it only knows their definitions but is unable to parse a spec file using Recommends Ideally we should be able to detect a too old/unpatched rpm... Technically, we could check whether it's Mageia < 6 which did have an non upstream implementation (but was using Suggests tag instead of Recommends and so would need testsuite adaption -- not worth it)
Diffstat (limited to 't/superuser--suggests.t')
-rw-r--r--t/superuser--suggests.t9
1 files changed, 8 insertions, 1 deletions
diff --git a/t/superuser--suggests.t b/t/superuser--suggests.t
index af60f1da..8e1fbf48 100644
--- a/t/superuser--suggests.t
+++ b/t/superuser--suggests.t
@@ -16,7 +16,13 @@ use strict;
use lib '.', 't';
use helper;
use urpm::util;
-use Test::More 'no_plan';
+use Test::More;
+if (are_weak_deps_supported()) {
+ plan 'no_plan';
+} else {
+ plan skip_all => "Weak dependencies support is needed for those tests" ;
+}
+
need_root_and_prepare();
@@ -30,6 +36,7 @@ test_invalid();
test_upgrade();
test_d();
test_force_suggests();
+done_testing();
sub test_b {
test('b', ['bb'], ['suggested_b']);