aboutsummaryrefslogtreecommitdiff
path: root/t/fail.t
diff options
context:
space:
mode:
Diffstat (limited to 't/fail.t')
-rwxr-xr-xt/fail.t9
1 files changed, 4 insertions, 5 deletions
diff --git a/t/fail.t b/t/fail.t
index a257251..9ec68c7 100755
--- a/t/fail.t
+++ b/t/fail.t
@@ -11,7 +11,7 @@ use lib "$RealBin/../SBO-Lib/lib";
use Test::Execute;
if ($ENV{TEST_INSTALL}) {
- plan tests => 4;
+ plan tests => 6;
} else {
plan skip_all => 'Only run these tests if TEST_INSTALL=1';
}
@@ -78,15 +78,14 @@ SKIP: {
# 4: Failing dependency
script (qw/ sboinstall nonexistentslackbuild2 /, { input => "y\ny\ny\nn", expected => qr/Failures:\n failingslackbuild: failingslackbuild.SlackBuild return non-zero\n/, exit => 3 });
+# 5-6: Failing download and md5sum in dependency
SKIP: {
skip "Not doing online tests", 2 unless $ENV{TEST_ONLINE};
- script (qw/ sboinstall nonexistentslackbuild3 /);
- script (qw/ sboinstall nonexistentslackbuild4 /);
+ script (qw/ sboinstall nonexistentslackbuild3 /, {input => "y\ny\ny\nn", expected => qr!Failures:\n failingdownload: Unable to wget http://www[.]pastemobile[.]org/perf[.]dummy[.]fail[.]\n!, exit => 5});
+ script (qw/ sboinstall nonexistentslackbuild4 /, {input => "y\ny\ny\nn", expected => qr!Failures:\n failingmd5sum: md5sum failure for /usr/sbo/distfiles/perf[.]dummy[.]\n!, exit => 4});
}
-
-
# Cleanup
END {
set_lo('delete');