aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-07-12 12:25:37 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-07-12 12:25:41 +0200
commit966d17fe70d85be62edb331e7f40bf9b896b3fc8 (patch)
treebe0326c7035a8a12cb06213abd8a0621d3658974 /t
parentf7d1ae5a9cb11d2fa6706d5f4ff74dc7d507584a (diff)
downloadsbotools2-966d17fe70d85be62edb331e7f40bf9b896b3fc8.tar.xz
14-jobs.t: test sboupgrade -j invalid
Diffstat (limited to 't')
-rwxr-xr-xt/14-jobs.t9
1 files changed, 7 insertions, 2 deletions
diff --git a/t/14-jobs.t b/t/14-jobs.t
index da1dee8..1b82c53 100755
--- 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 {