diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2017-03-25 16:28:12 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2017-03-25 16:28:12 +0100 |
commit | 76cc38696c0e28407296f1a07d6e70921307c14c (patch) | |
tree | 749b997067ace425ad7899bbd4e46ed3662bc54d /t | |
parent | 9e1b8f5d50385852b76773e8693a4ea30ab21fd5 (diff) | |
download | sbotools2-76cc38696c0e28407296f1a07d6e70921307c14c.tar.xz |
t/31-template.t: fix skipping when not under travis
Diffstat (limited to 't')
-rwxr-xr-x | t/31-template.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/31-template.t b/t/31-template.t index 06a1b8f..250e2f6 100755 --- a/t/31-template.t +++ b/t/31-template.t @@ -183,8 +183,8 @@ sboinstall '--create-template', '', '', { expected => qr/Usage/, exit => 1 }; # 27-29: sboinstall commandinreadmespanslines SKIP: { - skip "Only run useradd/groupadd commands under Travis CI", 2 unless (defined $ENV{TRAVIS} and $ENV{TRAVIS} eq 'true'); - skip "Only run useradd/groupadd commands if there is no test user/group", 2 if (defined getgrnam('test') or defined getpwnam('test')); + skip "Only run useradd/groupadd commands under Travis CI", 3 unless (defined $ENV{TRAVIS} and $ENV{TRAVIS} eq 'true'); + skip "Only run useradd/groupadd commands if there is no test user/group", 3 if (defined getgrnam('test') or defined getpwnam('test')); sboinstall '-i', '--create-template', "$tempdir/10.temp", 'commandinreadmespanslines', { input => "y\ny\ny", expected => qr!Template \Q$tempdir/10.temp saved.\E\n! }; capture_merged { system(qw/ userdel test /); system(qw/ groupdel test /); }; |