diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-04-25 00:06:31 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-04-25 00:06:31 +0200 |
commit | 456a1973213a7dc9749805ce433c20e955f7cbb2 (patch) | |
tree | 82f8f9473687f68a43b4a435f3775784550c4c29 /t/04-install.t | |
parent | df7c739d9b67b6a0a3bac19822d6bac330b91f56 (diff) | |
download | sbotools2-456a1973213a7dc9749805ce433c20e955f7cbb2.tar.xz |
04-install.t: Add test for answering no to sboinstall after queue is made
Diffstat (limited to 't/04-install.t')
-rwxr-xr-x | t/04-install.t | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/t/04-install.t b/t/04-install.t index f14d83d..231ee4c 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 => 12; + plan tests => 14; } else { plan skip_all => 'Only run these tests if TEST_INSTALL=1'; } @@ -79,6 +79,10 @@ sboinstall 'nonexistentslackbuild6', { input => "y\ny", expected => qr/aaa_base sboinstall qw/ -i nonexistentslackbuild /, { input => "y\ny", expected => qr/nonexistentslackbuild added to install queue/ }; ok(!-e "/var/log/packages/nonexistentslackbuild-1.0-noarch-1_SBo", "nonexistentslackbuild wasn't installed with -i"); +# 13-14: sboinstall nonexistentslackbuild +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"); + # Cleanup END { cleanup(); |