diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-31 15:40:52 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-31 22:52:46 +0100 |
commit | 2018bbaec4abf9894fd91107602b55cff1838174 (patch) | |
tree | 8bb31a9f9874db162a550bb24ec937899a5d98da /t/fail.t | |
parent | 3e49b7b7e33335e16238e4b7fb07f743c341506f (diff) | |
download | sbotools2-2018bbaec4abf9894fd91107602b55cff1838174.tar.xz |
Check for the right exitcode. See #23
Diffstat (limited to 't/fail.t')
-rwxr-xr-x | t/fail.t | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -100,20 +100,20 @@ script (qw/ sboinstall nonexistentslackbuild2 /, { input => "y\ny\ny\nn", expect SKIP: { skip "Not doing online tests", 2 unless $ENV{TEST_ONLINE}; - 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}); + 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 }); } # 7: Failing build with working dep -script (qw/ sboinstall failingslackbuild2 /, {input => "y\ny\ny", expected => qr/Failures:\n failingslackbuild2: failingslackbuild2[.]SlackBuild return non-zero\n\z/, exit => 3 }); -script (qw/ sboremove nonexistentslackbuild /, {input => "y\ny", test => 0 }); +script (qw/ sboinstall failingslackbuild2 /, { input => "y\ny\ny", expected => qr/Failures:\n failingslackbuild2: failingslackbuild2[.]SlackBuild return non-zero\n\z/, exit => 3 }); +script (qw/ sboremove nonexistentslackbuild /, { input => "y\ny", test => 0 }); # 8-9: Failing download and md5sum with working dep SKIP: { skip "Not doing online tests", 2 unless $ENV{TEST_ONLINE}; - script (qw/ sboinstall failingdownload2 /, {input => "y\ny\ny\nn", expected => qr!Failures:\n!, exit => 3 }); - script (qw/ sboinstall failingmd5sum2 /, {input => "y\ny\ny\nn", expected => qr!Failures:\n!, exit => 3 }); + script (qw/ sboinstall failingdownload2 /, { input => "y\ny\ny\nn", expected => qr!Failures:\n!, exit => 5 }); + script (qw/ sboinstall failingmd5sum2 /, { input => "y\ny\ny\nn", expected => qr!Failures:\n!, exit => 4 }); } # Cleanup |