[DRE-commits] [ruby-em-http-request] 02/03: added patch to disable network test

Jonas Genannt jonas at brachium-system.net
Fri Feb 21 20:15:27 UTC 2014


This is an automated email from the git hooks/post-receive script.

hggh-guest pushed a commit to branch master
in repository ruby-em-http-request.

commit 9f5677eab6c6c81af0b3a0c7fe5b32d5b37169a4
Author: Jonas Genannt <jonas at brachium-system.net>
Date:   Fri Feb 21 20:46:04 2014 +0100

    added patch to disable network test
---
 debian/patches/require_connection_test.patch | 15 +++++++++++++++
 debian/patches/series                        |  1 +
 2 files changed, 16 insertions(+)

diff --git a/debian/patches/require_connection_test.patch b/debian/patches/require_connection_test.patch
new file mode 100644
index 0000000..0781815
--- /dev/null
+++ b/debian/patches/require_connection_test.patch
@@ -0,0 +1,15 @@
+Description: disable all test, that require network access
+Author: Jonas Genannt <jonas.genannt at capi2name.de>
+Forwarded: not-needed
+
+--- a/spec/helper.rb
++++ b/spec/helper.rb
+@@ -14,7 +14,7 @@
+ end
+ 
+ def requires_connection(&blk)
+-  blk.call if system('ping -t1 -c1 google.com 2>&1 > /dev/null')
++  blk.call if nil
+ end
+ 
+ def requires_port(port, &blk)
diff --git a/debian/patches/series b/debian/patches/series
index bd78ce2..04d0772 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 diasble-rubygems.patch
+require_connection_test.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-em-http-request.git



More information about the Pkg-ruby-extras-commits mailing list