From 6631840bc112151fb8bd588e20aee8742b1c42eb Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 15 Jan 2020 02:33:20 +0100 Subject: 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) --- t/superuser--suggests.t | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 't/superuser--suggests.t') 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']); -- cgit v1.2.1