sbotools2

Maintenance fork of the original sbotools version 2
Log | Files | Refs | README

commit 3ad19817afa5d13baadafcfb59744831893c23b9
parent 15742f5186e42f40c0a04402c9f15f880ce79196
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date:   Thu, 31 Dec 2015 13:24:39 +0100

Only do download test if TEST_ONLINE=1

Diffstat:
Mt/fail.t | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/t/fail.t b/t/fail.t @@ -65,7 +65,11 @@ set_lo(); script (qw/ sboinstall failingslackbuild /, { input => "y\ny", expected => qr/Failures:\n failingslackbuild: failingslackbuild.SlackBuild return non-zero\n\z/, exit => 3 }); # 2: Failing download -script (qw/ sboinstall failingdownload /, { input => "y\ny\nn", expected => qr!Failures:\n failingdownload: Unable to wget http://www[.]pastemobile[.]org/perf[.]dummy[.]fail[.]\n\z!, exit => 5 }); +SKIP: { + skip "Not doing online tests", 1 unless $ENV{TEST_ONLINE}; + + script (qw/ sboinstall failingdownload /, { input => "y\ny\nn", expected => qr!Failures:\n failingdownload: Unable to wget http://www[.]pastemobile[.]org/perf[.]dummy[.]fail[.]\n\z!, exit => 5 }); +} # Cleanup END {