You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.3 KiB
34 lines
1.3 KiB
6 years ago
|
From 68fae17f1439a3ad29453cf10951bd3b5131fd6f Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
|
||
|
Date: Wed, 27 Feb 2019 15:40:37 +0100
|
||
|
Subject: [PATCH] Respect Ruby configuration when filtering backtrace.
|
||
|
|
||
|
The Ruby might be configured to be installed into various locations. Be
|
||
|
smarter about filtering backtrace to properly remove all traces of
|
||
|
standard library.
|
||
|
|
||
|
Fixes #1341.
|
||
|
---
|
||
|
spec/cucumber/formatter/backtrace_filter_spec.rb | 4 +++-
|
||
|
1 files changed, 3 insertions(+), 1 deletions(-)
|
||
|
|
||
|
diff --git a/spec/cucumber/formatter/backtrace_filter_spec.rb b/spec/cucumber/formatter/backtrace_filter_spec.rb
|
||
|
index f51748a5..27563a63 100644
|
||
|
--- a/spec/cucumber/formatter/backtrace_filter_spec.rb
|
||
|
+++ b/spec/cucumber/formatter/backtrace_filter_spec.rb
|
||
|
@@ -14,8 +14,10 @@ module Cucumber
|
||
|
_anything__minitest__anything_
|
||
|
_anything__test/unit__anything_
|
||
|
_anything__Xgem/ruby__anything_
|
||
|
- _anything__lib/ruby/__anything_
|
||
|
_anything__.rbenv/versions/2.3/bin/bundle__anything_)
|
||
|
+ trace << "_anything__#{RbConfig::CONFIG['rubyarchdir']}__anything_"
|
||
|
+ trace << "_anything__#{RbConfig::CONFIG['rubylibdir']}__anything_"
|
||
|
+
|
||
|
@exception = Exception.new
|
||
|
@exception.set_backtrace(trace)
|
||
|
end
|
||
|
--
|
||
|
2.20.1
|
||
|
|