sbotools2

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

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

07-fail.t: Test proceeding after failed queue

Diffstat:
Mt/07-fail.t | 7++++++-
1 file changed, 6 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 => 17; + plan tests => 18; } else { plan skip_all => 'Only run these tests if TEST_INSTALL=1'; } @@ -67,6 +67,7 @@ sub cleanup { system(qw!rm -rf /tmp/package-malformed-readme!); system(qw!rm -rf /tmp/package-malformed-slackbuild!); system(qw!rm -rf /tmp/package-multilibfail!); + system(qw!/sbin/removepkg nonexistentslackbuild2!); }; } @@ -152,6 +153,10 @@ SKIP: { # 17: Slackbuild exits 0 but doesn't create a package sboinstall 'failingslackbuild3', { input => "y\ny", expected => qr/Failures:\n failingslackbuild3: failingslackbuild3.SlackBuild didn't create a package\n\z/, exit => 3 }; +# 18: Slackbuild fails, but we still want to continue with the queue +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 }; + # Cleanup END { cleanup();