[DRE-commits] [cucumber] 03/06: Add 0007_exclude_vendor_ruby_json.patch

Cédric Boutillier boutil at moszumanska.debian.org
Thu Oct 12 20:46:25 UTC 2017


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

boutil pushed a commit to branch master
in repository cucumber.

commit 6125201ebc4884f6abc9192314cb4a3ae285a84a
Author: Cédric Boutillier <boutil at debian.org>
Date:   Thu Oct 12 22:05:35 2017 +0200

    Add 0007_exclude_vendor_ruby_json.patch
---
 debian/patches/0007_exclude_vendor_ruby_json.patch | 17 +++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 18 insertions(+)

diff --git a/debian/patches/0007_exclude_vendor_ruby_json.patch b/debian/patches/0007_exclude_vendor_ruby_json.patch
new file mode 100644
index 0000000..f50c9ef
--- /dev/null
+++ b/debian/patches/0007_exclude_vendor_ruby_json.patch
@@ -0,0 +1,17 @@
+Description: Consider /usr/lib/ruby/vendor_ruby/cucumber as internal files
+ This is needed to exclude these files from backtrace, and to make tests to
+ pass with autopkgtest
+Author: Cédric Boutillier <boutil at debian.org>
+Last-Update: 2017-10-12
+Forwarded: not-needed
+
+--- a/lib/cucumber/formatter/json.rb
++++ b/lib/cucumber/formatter/json.rb
+@@ -103,6 +103,7 @@
+       end
+ 
+       def internal_hook?(test_step)
++        test_step.source.last.location.file.include?('/usr/lib/ruby/vendor_ruby/cucumber/') || \
+         test_step.source.last.location.file.include?('lib/cucumber/')
+       end
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 13cca53..1c4d65f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 0004-Update_default_binary_path.patch
 0005-clean_bin_cucumber.patch
 0006_fix_formatter_html_spec.patch
+0007_exclude_vendor_ruby_json.patch

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



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