sbotools2

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

commit f67f2d3940a53941005a5d320cb72cc28d5331cf
parent 0dbe54d0e68383272f2b49bdca643084820489ff
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date:   Sun, 24 Apr 2016 17:09:02 +0200

07-fail.t: Test failure during noninteractive run

Diffstat:
Mt/07-fail.t | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/t/07-fail.t b/t/07-fail.t @@ -10,7 +10,7 @@ use lib $RealBin; use Test::Sbotools qw/ make_slackbuilds_txt set_lo sboinstall sboremove /; if ($ENV{TEST_INSTALL}) { - plan tests => 18; + plan tests => 19; } else { plan skip_all => 'Only run these tests if TEST_INSTALL=1'; } @@ -157,6 +157,9 @@ sboinstall 'failingslackbuild3', { input => "y\ny", expected => qr/Failures:\n sboinstall 'nonexistentslackbuild2', { input => "y\ny\ny\ny", expected => qr/Failures:\n failingslackbuild: failingslackbuild.SlackBuild return non-zero\n/, exit => 0 }; sboremove 'nonexistentslackbuild2', { input => "y\ny", test => 0 }; +# 19: Slackbuild fails during noninteractive run +sboinstall qw/ -r failingslackbuild /, { expected => qr/Failures:\n failingslackbuild: failingslackbuild.SlackBuild return non-zero\n/, exit => 3 }; + # Cleanup END { cleanup();