diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-04-25 00:07:17 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-04-25 00:07:17 +0200 |
commit | 2f670351a9ea8a7598f2c0cb1e66c931548d402e (patch) | |
tree | 31c9d1eee52530066ac9fffffc7c855fd4820631 /t/04-install.t | |
parent | 456a1973213a7dc9749805ce433c20e955f7cbb2 (diff) | |
download | sbotools2-2f670351a9ea8a7598f2c0cb1e66c931548d402e.tar.xz |
04-install.t: Add test for answering no to sboinstall before queue is made
Diffstat (limited to 't/04-install.t')
-rwxr-xr-x | t/04-install.t | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/t/04-install.t b/t/04-install.t index 231ee4c..19357d3 100755 --- a/t/04-install.t +++ b/t/04-install.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 => 14; + plan tests => 15; } else { plan skip_all => 'Only run these tests if TEST_INSTALL=1'; } @@ -83,6 +83,9 @@ ok(!-e "/var/log/packages/nonexistentslackbuild-1.0-noarch-1_SBo", "nonexistents sboinstall 'nonexistentslackbuild', { input => "y\nn", expected => qr/nonexistentslackbuild added to install queue/ }; ok(!-e "/var/log/packages/nonexistentslackbuild-1.0-noarch-1_SBo", "nonexistentslackbuild wasn't installed when saying no"); +# 15: sboinstall nonexistentslackbuild +sboinstall 'nonexistentslackbuild', { input => "n", expected => sub { not /nonexistentslackbuild added to install queue/ } }; + # Cleanup END { cleanup(); |