commit 1efe83bb904d26a95f2e3b4730e781d43d963fbd
parent 028ea510e8b91926832a09346573166f049c06a6
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date: Sat, 18 Jun 2016 02:16:12 +0200
06-remove.t: add test for nointeractive when specifying the same sbo twice
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/t/06-remove.t b/t/06-remove.t
@@ -10,7 +10,7 @@ use lib $RealBin;
use Test::Sbotools qw/ make_slackbuilds_txt set_lo sboinstall sboremove restore_perf_dummy /;
if ($ENV{TEST_INSTALL}) {
- plan tests => 13;
+ plan tests => 14;
} else {
plan skip_all => 'Only run these tests if TEST_INSTALL=1';
}
@@ -88,6 +88,10 @@ sboremove 'nonexistentslackbuild7', { input => "y\ny\ny", expected => qr/nonexis
sboinstall 'nonexistentslackbuild8', { input => "y\ny", test => 0 };
sboremove 'nonexistentslackbuild8', { input => "y\ny\ny", expected => qr/But has to be read/ };
+# 14: sboremove nointeractive
+sboinstall 'nonexistentslackbuild', { input => "y\ny", test => 0 };
+sboremove qw'--nointeractive nonexistentslackbuild nonexistentslackbuild', { input => "y\ny", expected => qr/Removing 1 package\(s\)\nnonexistentslackbuild\n\n.*All operations/s };
+
# Cleanup
END {
cleanup();