aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-07-11 22:19:10 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-07-11 22:19:10 +0200
commitf7d1ae5a9cb11d2fa6706d5f4ff74dc7d507584a (patch)
treea7e768c92b5db6fd9e666b59ac6bab35307128c6
parent25402dbdf304e25e6bbf92a6efda5f855c80303b (diff)
downloadsbotools2-f7d1ae5a9cb11d2fa6706d5f4ff74dc7d507584a.tar.xz
07-fail.t: test sboupgrade -z -r
-rwxr-xr-xt/07-fail.t10
1 files changed, 8 insertions, 2 deletions
diff --git a/t/07-fail.t b/t/07-fail.t
index 6cba053..a5bf6ef 100755
--- a/t/07-fail.t
+++ b/t/07-fail.t
@@ -7,11 +7,11 @@ use Test::More;
use Capture::Tiny qw/ capture_merged /;
use FindBin '$RealBin';
use lib $RealBin;
-use Test::Sbotools qw/ make_slackbuilds_txt set_lo set_repo sboinstall sboremove sbosnap restore_perf_dummy /;
+use Test::Sbotools qw/ make_slackbuilds_txt set_lo set_repo sboinstall sboremove sbosnap restore_perf_dummy sboupgrade /;
use File::Temp 'tempdir';
if ($ENV{TEST_INSTALL}) {
- plan tests => 26;
+ plan tests => 27;
} else {
plan skip_all => 'Only run these tests if TEST_INSTALL=1';
}
@@ -206,6 +206,12 @@ SKIP: {
sboinstall qw/ -p malformed-readme /, { exit => 2, expected => qr!A fatal script error has occurred:\nopen_fh, .*t/LO-fail/malformed-readme/README is not a file! };
}
+# 27: sboupgrade with -r and -z
+set_lo "$RealBin/LO";
+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" };
+
# Cleanup
END {
cleanup();