diff options
Diffstat (limited to 't')
-rw-r--r-- | t/superuser--http.t | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/superuser--http.t b/t/superuser--http.t index cd934242..15f0694a 100644 --- a/t/superuser--http.t +++ b/t/superuser--http.t @@ -4,6 +4,7 @@ use strict; use lib '.', 't'; use helper; use Test::More 'no_plan'; +use Cwd 'getcwd'; need_root_and_prepare(); @@ -25,6 +26,10 @@ sub test { } sub test_exotic_medium_name { + if (getcwd() =~ m!^/root/!) { + warn "SKIPing test_exotic_medium_name() due to nobody having no access to /root/rpm*\n"; + return; + } my $medium_name = 'the medium (+name+)'; urpmi_addmedia("'$medium_name' $url/media/various"); |