summaryrefslogtreecommitdiffstats
path: root/t/superuser--orphans.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--orphans.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--orphans.t')
-rw-r--r--t/superuser--orphans.t12
1 files changed, 10 insertions, 2 deletions
diff --git a/t/superuser--orphans.t b/t/superuser--orphans.t
index 30c16477..216a54e3 100644
--- a/t/superuser--orphans.t
+++ b/t/superuser--orphans.t
@@ -40,7 +40,11 @@ set_urpmi_cfg_global_options({ 'nb-of-new-unrequested-pkgs-between-auto-select-o
test_urpme_v1(['h'], 'h', '');
-test_urpme_v1(['hh', 'h'], 'h', 'hh');
+if (are_weak_deps_supported()) {
+ test_urpme_v1(['hh', 'h'], 'h', 'hh');
+} else {
+ test_urpme_v1(['h'], 'h');
+}
test_urpme_v1(['u1 u2'], 'u1', 'u2');
test_urpme_v1(['u3 u4'], 'u4', 'u3');
@@ -52,7 +56,11 @@ test_auto_select_both('d', 'dd', 'd-2', 'dd-1');
test_auto_select_both('e', 'ee1', 'e-2 ee2-2', 'ee1-1');
test_auto_select_both('f', 'ff1', 'f-2 ff2-2');
test_auto_select_both('g', 'gg', 'g-2 gg-2');
-test_auto_select_both('h', 'hh', 'h-2', 'hh-1');
+if (are_weak_deps_supported()) {
+ test_auto_select_both('h', 'hh', 'h-2', 'hh-1');
+} else {
+ test_auto_select_both('h', '', 'h-2', '');
+}
test_auto_select_both('l', 'll', 'l-2 ll-1');
test_auto_select_both('m', 'mm', 'm-2 mm-2');
test_auto_select_both('n', 'nn', 'n-2 nn-2');