sbotools2

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

commit 45cbf7f38c1d9a44a5cd35bb2e03214e46669c17
parent 623ebe7962412958787e5cb1982b72289bdae649
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date:   Thu, 14 Jul 2016 22:34:09 +0200

07-fail.t: test sboupgrade with a nonexistentslackbuildname

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

diff --git a/t/07-fail.t b/t/07-fail.t @@ -11,7 +11,7 @@ use Test::Sbotools qw/ make_slackbuilds_txt set_lo set_repo sboinstall sboremove use File::Temp 'tempdir'; if ($ENV{TEST_INSTALL}) { - plan tests => 27; + plan tests => 28; } else { plan skip_all => 'Only run these tests if TEST_INSTALL=1'; } @@ -212,6 +212,9 @@ sboinstall qw/ -r nonexistentslackbuild /, { test => 0 }; set_lo "$RealBin/LO2"; sboupgrade qw/ -z -r nonexistentslackbuild /, { exit => 1, expected => "-r|--nointeractive and -z|--force-reqs can not be used together.\n" }; +# 28: sboupgrade nonexistentslackbuildname +sboupgrade 'nonexistentslackbuildname', { exit => 1, expected => "Unable to locate nonexistentslackbuildname in the SlackBuilds.org tree.\n" }; + # Cleanup END { cleanup();