aboutsummaryrefslogtreecommitdiff
path: root/t/06-remove.t
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-06-18 02:16:12 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-06-18 02:16:12 +0200
commit1efe83bb904d26a95f2e3b4730e781d43d963fbd (patch)
treeda1281bb02d18d0cb9e8bfd0b5d8e2088cbf3684 /t/06-remove.t
parent028ea510e8b91926832a09346573166f049c06a6 (diff)
downloadsbotools2-1efe83bb904d26a95f2e3b4730e781d43d963fbd.tar.xz
06-remove.t: add test for nointeractive when specifying the same sbo twice
Diffstat (limited to 't/06-remove.t')
-rwxr-xr-xt/06-remove.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/06-remove.t b/t/06-remove.t
index 1e92b52..386e3f1 100755
--- 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();