aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-04-24 17:05:26 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-04-24 17:05:26 +0200
commit0dbe54d0e68383272f2b49bdca643084820489ff (patch)
treee2b76365080dda6f1d3e0107c02170fef078f52e
parentd320a9dd23f23009cfb67ab8be2f56c45b9f2844 (diff)
downloadsbotools2-0dbe54d0e68383272f2b49bdca643084820489ff.tar.xz
07-fail.t: Test proceeding after failed queue
-rwxr-xr-xt/07-fail.t7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/07-fail.t b/t/07-fail.t
index dc74fca..74f671c 100755
--- 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();