sbotools2

Maintenance fork of the original sbotools version 2
Log | Files | Refs | README

commit ac386434fffe7fd9efcde796856ae676f0c91227
parent ec42e65a3548ed7d96e253f916dd46fd68051dd5
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date:   Mon,  2 May 2016 02:36:48 +0200

12-readme.t: skip commandinreadme tests if test user or group exists

Diffstat:
Mt/12-readme.t | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/t/12-readme.t b/t/12-readme.t @@ -52,6 +52,7 @@ sboremove 'envsettingtest2', { input => "y\ny\ny", test => 0 }; # 6-7: sboinstall commandinreadme 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')); sboinstall 'commandinreadme', { input => "y\ny\ny", expected => qr{It looks like this slackbuild requires the following command\(s\) to be run first:.*groupadd -g 200 test.*useradd -u 200 -g 200 -d /tmp test.*Shall I run them prior to building.*}s }; sboremove 'commandinreadme', { input => "y\ny", test => 0 };