[DRE-commits] [ruby-mocha] 01/03: Add backtrace_regexp_match.patch to fix autopkgtests
Cédric Boutillier
boutil at moszumanska.debian.org
Sat Jul 8 16:07:42 UTC 2017
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository ruby-mocha.
commit 902b39691ef8a5f6d4d1a8f25253ce07e56fd55d
Author: Cédric Boutillier <boutil at debian.org>
Date: Sat Jul 8 09:16:52 2017 +0200
Add backtrace_regexp_match.patch to fix autopkgtests
---
debian/changelog | 1 +
debian/patches/backtrace_regexp_match.patch | 18 ++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 20 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index b481b72..cce42c0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ ruby-mocha (1.2.1-1) UNRELEASED; urgency=medium
* Run wrap-and-sort on packaging files
* Update privacy_breach.patch
* Drop ruby22_nil_frozen.patch (applied upstream)
+ * Add backtrace_regexp_match.patch to fix autopkgtests
* Add Testsuite field
* Bump Standards-Version to 4.0.0 (no changes needed)
* Update reference to homepage
diff --git a/debian/patches/backtrace_regexp_match.patch b/debian/patches/backtrace_regexp_match.patch
new file mode 100644
index 0000000..16945fd
--- /dev/null
+++ b/debian/patches/backtrace_regexp_match.patch
@@ -0,0 +1,18 @@
+Description: extend regexp matching Mocha's path
+ to include vendorlib for autopkgtest
+Author: Cédric Boutillier <boutil at debian.org>
+Forwarded: not-needed
+Last-Update: 2017-07-08
+
+
+--- a/test/unit/backtrace_filter_test.rb
++++ b/test/unit/backtrace_filter_test.rb
+@@ -13,7 +13,7 @@
+ end
+
+ def test_should_determine_path_for_mocha_lib_directory
+- assert_match Regexp.new("/lib/$"), BacktraceFilter::LIB_DIRECTORY
++ assert_match Regexp.new("/lib/$|#{RbConfig::CONFIG['vendorlib']}"), BacktraceFilter::LIB_DIRECTORY
+ end
+
+ end
diff --git a/debian/patches/series b/debian/patches/series
index 328fe79..4c00dc6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
deactivate_failing_tests.patch
+backtrace_regexp_match.patch
privacy_breach.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-mocha.git
More information about the Pkg-ruby-extras-commits
mailing list