[DRE-commits] [ruby-simplecov] 11/11: add debian/patches/fix-test-suite.patch
Antonio Terceiro
terceiro at moszumanska.debian.org
Tue Sep 15 15:29:34 UTC 2015
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository ruby-simplecov.
commit cad3bc1b11f90fe4f3261b47247a16b7b53ed388
Author: Antonio Terceiro <terceiro at debian.org>
Date: Tue Sep 15 12:28:04 2015 -0300
add debian/patches/fix-test-suite.patch
---
debian/changelog | 1 +
debian/patches/fix-test-suite.patch | 53 +++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 55 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 6601195..11777d4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ ruby-simplecov (0.10.0-1) unstable; urgency=medium
simplecov-html at all, and use a simple text formatted instead
(Closes: #770225)
- add debian/patches/skip-broken-test.patch
+ - add debian/patches/fix-test-suite.patch
* Update packaging with a new dh-make-ruby run
* debian/control: Build-Depends: ruby-minitest, ruby-rspec
diff --git a/debian/patches/fix-test-suite.patch b/debian/patches/fix-test-suite.patch
new file mode 100644
index 0000000..13746ea
--- /dev/null
+++ b/debian/patches/fix-test-suite.patch
@@ -0,0 +1,53 @@
+Description: Fix sample appication in test suite
+ Load "simplecov" from the $LOAD_PATH, trusting it is correct.
+Author: Antonio Terceiro <terceiro at debian.org>
+Origin: vendor
+Forwarded: not-needed
+Last-Update: 2015-09-15
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/test/fixtures/deleted_source_sample.rb
++++ b/test/fixtures/deleted_source_sample.rb
+@@ -1,5 +1,4 @@
+-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", ".."))
+-require "lib/simplecov"
++require "simplecov"
+ SimpleCov.start { command_name "Test" }
+
+ dir = File.expand_path(File.dirname(__FILE__))
+--- a/test/fixtures/frameworks/rspec_bad.rb
++++ b/test/fixtures/frameworks/rspec_bad.rb
+@@ -1,5 +1,4 @@
+-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "..", ".."))
+-require "lib/simplecov"
++require "simplecov"
+ require "rspec"
+ SimpleCov.start
+ describe "exit status" do
+--- a/test/fixtures/frameworks/rspec_good.rb
++++ b/test/fixtures/frameworks/rspec_good.rb
+@@ -1,5 +1,4 @@
+-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "..", ".."))
+-require "lib/simplecov"
++require "simplecov"
+ require "rspec"
+ SimpleCov.start
+ describe "exit status" do
+--- a/test/fixtures/frameworks/testunit_bad.rb
++++ b/test/fixtures/frameworks/testunit_bad.rb
+@@ -1,5 +1,4 @@
+-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "..", ".."))
+-require "lib/simplecov"
++require "simplecov"
+ SimpleCov.start
+ require "test/unit"
+ class FooTest < Test::Unit::TestCase
+--- a/test/fixtures/frameworks/testunit_good.rb
++++ b/test/fixtures/frameworks/testunit_good.rb
+@@ -1,5 +1,4 @@
+-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "..", ".."))
+-require "lib/simplecov"
++require "simplecov"
+ SimpleCov.start
+ require "test/unit"
+ class FooTest < Test::Unit::TestCase
diff --git a/debian/patches/series b/debian/patches/series
index 7c15d51..62ab1d4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
remove-rubygems-bundler.patch
ignore-simplecov-html
skip-broken-test.patch
+fix-test-suite.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-simplecov.git
More information about the Pkg-ruby-extras-commits
mailing list