summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2020-01-17 04:51:42 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2020-04-09 17:50:35 +0200
commitacebdccc970491ca7f76af97cd6350428d64e239 (patch)
tree8e1e5d1f1b46c2b834b0a83a4402ede9f0759098
parent3f9f0b7803eb93ba1d6d18c6a68d3f04260f8872 (diff)
downloadurpmi-acebdccc970491ca7f76af97cd6350428d64e239.tar
urpmi-acebdccc970491ca7f76af97cd6350428d64e239.tar.gz
urpmi-acebdccc970491ca7f76af97cd6350428d64e239.tar.bz2
urpmi-acebdccc970491ca7f76af97cd6350428d64e239.tar.xz
urpmi-acebdccc970491ca7f76af97cd6350428d64e239.zip
cpan_testers: fix a warning when skipping tests
should have been in commit ad953e4c4bca7e5bd9f5b5664298e04272537479
-rw-r--r--t/superuser--mirrorlist.t12
1 files changed, 10 insertions, 2 deletions
diff --git a/t/superuser--mirrorlist.t b/t/superuser--mirrorlist.t
index f59259b7..2ebbfd7f 100644
--- a/t/superuser--mirrorlist.t
+++ b/t/superuser--mirrorlist.t
@@ -3,8 +3,16 @@
use strict;
use lib '.', 't';
use helper;
-use Test::More 'no_plan';
-plan skip_all => "Needs a Mageia specific patch that introduces Time::ZoneInfo->current_zone()" if !-e '/etc/mageia-release';
+use Test::More;
+# Must be done before 'use urpm::cfg' else we got:
+# '1..0 # SKIP Needs a Mageia specific patch that introduces Time::ZoneInfo->current_zone()'
+BEGIN {
+ if (-e '/etc/mageia-release') {
+ plan 'no_plan';
+ } else {
+ plan skip_all => "Needs a Mageia specific patch that introduces Time::ZoneInfo->current_zone()";
+ }
+}
BEGIN { use_ok 'urpm::cfg' }