[DRE-commits] [ruby-css-parser] 02/06: patches for the test suite

Antonio Terceiro terceiro at moszumanska.debian.org
Fri Jan 22 13:36:22 UTC 2016


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

terceiro pushed a commit to branch master
in repository ruby-css-parser.

commit c7cfa75f9790bbcacc723e139ce9f1a4f38f5dbf
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Wed Jun 24 18:20:32 2015 -0300

    patches for the test suite
---
 debian/changelog                                     |  5 ++++-
 debian/patches/0001-Sanitize-test-suite.patch        | 20 ++++++++++++++++++++
 .../0002-Disable-tests-that-hit-the-network.patch    | 18 ++++++++++++++++++
 debian/patches/series                                |  2 ++
 4 files changed, 44 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index de9db20..ec4cf38 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,8 @@
 ruby-css-parser (1.3.6-1) UNRELEASED; urgency=medium
 
-  * Initial release (Closes: #nnnn)
+  * Initial release
+  * 0001-Sanitize-test-suite.patch,
+    0002-Disable-tests-that-hit-the-network.patch: adjustments to the test
+    suite.
 
  -- Antonio Terceiro <terceiro at debian.org>  Wed, 24 Jun 2015 17:58:37 -0300
diff --git a/debian/patches/0001-Sanitize-test-suite.patch b/debian/patches/0001-Sanitize-test-suite.patch
new file mode 100644
index 0000000..a853705
--- /dev/null
+++ b/debian/patches/0001-Sanitize-test-suite.patch
@@ -0,0 +1,20 @@
+From: Antonio Terceiro <terceiro at debian.org>
+Date: Wed, 24 Jun 2015 18:00:43 -0300
+Subject: Sanitize test suite
+
+---
+ test/test_helper.rb | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/test/test_helper.rb b/test/test_helper.rb
+index ffe7a2e..e3d0b61 100644
+--- a/test/test_helper.rb
++++ b/test/test_helper.rb
+@@ -1,6 +1,5 @@
+ require 'rubygems'
+-require 'bundler/setup'
+ require 'test/unit'
+ require 'net/http'
+ require 'webrick'
+-require File.dirname(__FILE__) + '/../lib/css_parser'
++require 'css_parser'
diff --git a/debian/patches/0002-Disable-tests-that-hit-the-network.patch b/debian/patches/0002-Disable-tests-that-hit-the-network.patch
new file mode 100644
index 0000000..6bca936
--- /dev/null
+++ b/debian/patches/0002-Disable-tests-that-hit-the-network.patch
@@ -0,0 +1,18 @@
+From: Antonio Terceiro <terceiro at debian.org>
+Date: Wed, 24 Jun 2015 18:18:23 -0300
+Subject: Disable tests that hit the network
+
+---
+ test/test_css_parser_loading.rb | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/test_css_parser_loading.rb b/test/test_css_parser_loading.rb
+index 20fc87c..c1111df 100644
+--- a/test/test_css_parser_loading.rb
++++ b/test/test_css_parser_loading.rb
+@@ -160,4 +160,4 @@ class CssParserLoadingTests < Test::Unit::TestCase
+       cp_without_exceptions.load_uri!("#{@uri_base}/no-exist.xyz")
+     end
+   end
+-end
++end if false # disable this entire test class
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c53b874
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+0001-Sanitize-test-suite.patch
+0002-Disable-tests-that-hit-the-network.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-css-parser.git



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