summaryrefslogtreecommitdiffstats
path: root/t/superuser--mirrorlist.t
diff options
context:
space:
mode:
Diffstat (limited to 't/superuser--mirrorlist.t')
-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' }