commit a2ae3a6df224fb79a75c2a043d8e6b4830ccf2bf
parent b339c961380eb69c1af6d24a9802fd3f9b0dddbe
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date: Sun, 17 Jul 2016 00:13:08 +0200
05-upgrade.t: test sboupgrade -r on already uptodate slackbuild
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/t/05-upgrade.t b/t/05-upgrade.t
@@ -11,7 +11,7 @@ use Test::Sbotools qw/ make_slackbuilds_txt set_lo sboconfig sboinstall sboupgra
use File::Temp 'tempdir';
if ($ENV{TEST_INSTALL}) {
- plan tests => 18;
+ plan tests => 19;
} else {
plan skip_all => 'Only run these tests if TEST_INSTALL=1';
}
@@ -131,6 +131,9 @@ install('LO', 'nonexistentslackbuild');
sboupgrade qw/ -r -f nonexistentslackbuild /, { expected => qr/^Upgrade queue: nonexistentslackbuild$/m };
sboupgrade qw/ -r -f nonexistentslackbuild2 /, { expected => "" };
+# 19: sboupgrade -r on something already up to date
+sboupgrade qw/ -r nonexistentslackbuild /, { expected => "" };
+
# Cleanup
END {
cleanup();