From 1efe83bb904d26a95f2e3b4730e781d43d963fbd Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Sat, 18 Jun 2016 02:16:12 +0200 Subject: 06-remove.t: add test for nointeractive when specifying the same sbo twice --- t/06-remove.t | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); -- cgit v1.2.3