[DRE-commits] [SCM] ruby-webrobots.git branch, master, updated. debian/0.0.13-1-1-gcf8e979

Christian Hofstaedtler christian at hofstaedtler.name
Sat May 5 21:22:23 UTC 2012


The following commit has been merged in the master branch:
commit cf8e97900f35fbdcad4ef1a1629e2a90fbad056e
Author: Christian Hofstaedtler <christian at hofstaedtler.name>
Date:   Sat May 5 23:22:11 2012 +0200

    Disable a test to fix #666642

diff --git a/debian/changelog b/debian/changelog
index 5429668..c9cc4cb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+ruby-webrobots (0.0.13-2) unstable; urgency=low
+
+  * Disable a test so package build does not depend on the Internet
+    (Closes: #666642)
+
+ -- Christian Hofstaedtler <christian at hofstaedtler.name>  Sat, 05 May 2012 23:20:41 +0200
+
 ruby-webrobots (0.0.13-1) unstable; urgency=low
 
   * New upstream version
diff --git a/debian/patches/disable-internet-tests b/debian/patches/disable-internet-tests
new file mode 100644
index 0000000..a56a55a
--- /dev/null
+++ b/debian/patches/disable-internet-tests
@@ -0,0 +1,18 @@
+Author: Christian Hofstaedtler <christian at hofstaedtler.name>
+Forwarded: not-needed
+Last-updated: 2012-05-05
+Description: Disable test requiring Internet
+ Package builds can not rely on working Internet to be available, so
+ this disables the test.
+Index: ruby-webrobots/test/test_webrobots.rb
+===================================================================
+--- ruby-webrobots.orig/test/test_webrobots.rb	2012-05-05 23:15:19.480919860 +0200
++++ ruby-webrobots/test/test_webrobots.rb	2012-05-05 23:16:03.988304277 +0200
+@@ -472,6 +472,7 @@
+     end
+ 
+     should "be parsed for major sites" do
++      skip('Disabled in Debian so build works without Internet')
+       assert_nothing_raised {
+         assert !@testbot.allowed?("http://www.google.com/search")
+         assert !@testbot.allowed?("https://www.google.com/search")
diff --git a/debian/patches/series b/debian/patches/series
index 4f8edee..4287973 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 remove-rubygems-calls
+disable-internet-tests
diff --git a/test/helper.rb b/test/helper.rb
index 4bde52b..9642bed 100644
--- a/test/helper.rb
+++ b/test/helper.rb
@@ -1,12 +1,12 @@
-require 'rubygems'
-require 'bundler'
-begin
-  Bundler.setup(:default, :development)
-rescue Bundler::BundlerError => e
-  $stderr.puts e.message
-  $stderr.puts "Run `bundle install` to install missing gems"
-  exit e.status_code
-end
+# require 'rubygems'
+# require 'bundler'
+# begin
+#   Bundler.setup(:default, :development)
+# rescue Bundler::BundlerError => e
+#   $stderr.puts e.message
+#   $stderr.puts "Run `bundle install` to install missing gems"
+#   exit e.status_code
+# end
 require 'test/unit'
 require 'shoulda'
 
diff --git a/test/test_webrobots.rb b/test/test_webrobots.rb
index 06c3ebf..f72047c 100644
--- a/test/test_webrobots.rb
+++ b/test/test_webrobots.rb
@@ -472,6 +472,7 @@ Disallow: /
     end
 
     should "be parsed for major sites" do
+      skip('Disabled in Debian so build works without Internet')
       assert_nothing_raised {
         assert !@testbot.allowed?("http://www.google.com/search")
         assert !@testbot.allowed?("https://www.google.com/search")

-- 
ruby-webrobots.git



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