sbotools2

Maintenance fork of the original sbotools version 2
Log | Files | Refs | README

commit 2f670351a9ea8a7598f2c0cb1e66c931548d402e
parent 456a1973213a7dc9749805ce433c20e955f7cbb2
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date:   Mon, 25 Apr 2016 00:07:17 +0200

04-install.t: Add test for answering no to sboinstall before queue is made

Diffstat:
Mt/04-install.t | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 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();