aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-12-31 13:24:39 +0100
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-12-31 22:52:46 +0100
commit3ad19817afa5d13baadafcfb59744831893c23b9 (patch)
treee2f1f7e06390b61d40f6a371d0d8714e2e5f76f7
parent15742f5186e42f40c0a04402c9f15f880ce79196 (diff)
downloadsbotools2-3ad19817afa5d13baadafcfb59744831893c23b9.tar.xz
Only do download test if TEST_ONLINE=1
-rwxr-xr-xt/fail.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/fail.t b/t/fail.t
index c8f4b58..fee20bd 100755
--- 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 {