commit 966d17fe70d85be62edb331e7f40bf9b896b3fc8
parent f7d1ae5a9cb11d2fa6706d5f4ff74dc7d507584a
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date: Tue, 12 Jul 2016 12:25:37 +0200
14-jobs.t: test sboupgrade -j invalid
Diffstat:
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/t/14-jobs.t b/t/14-jobs.t
@@ -7,10 +7,10 @@ use Test::More;
use Capture::Tiny qw/ capture_merged /;
use FindBin '$RealBin';
use lib $RealBin;
-use Test::Sbotools qw/ set_lo set_jobs sboinstall sboremove sboconfig restore_perf_dummy make_slackbuilds_txt /;
+use Test::Sbotools qw/ set_lo set_jobs sboinstall sboremove sboconfig restore_perf_dummy make_slackbuilds_txt sboupgrade /;
if ($ENV{TEST_INSTALL}) {
- plan tests => 6;
+ plan tests => 7;
} else {
plan skip_all => "Only run these tests if TEST_INSTALL=1";
}
@@ -71,6 +71,11 @@ sboremove('nonexistentslackbuild', { input => "y\ny", test => 0 });
#6: sboinstall -j invalid
sboinstall(qw/ -j invalid nonexistentslackbuild /, { exit => 1, expected => "You have provided an invalid value for -j|--jobs\n" });
+#7: sboupgrade -j invalid
+sboinstall qw/ -r nonexistentslackbuild /, { test => 0 };
+set_lo "$RealBin/LO2";
+sboupgrade qw/ -j invalid nonexistentslackbuild /, { exit => 1, expected => "You have provided an invalid value for -j|--jobs\n" };
+
# Cleanup
END {