-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Fixes INT signal for ruby executables #4727
Conversation
@@ -60,6 +60,7 @@ def kernel_load(file, *args) | |||
ui = Bundler.ui | |||
Bundler.ui = nil | |||
require "bundler/setup" | |||
Signal.list.each {|signal| trap(signal, "DEFAULT") } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signal.list
is a hash, so could that be |signal, _|
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea! My bad!
Is it fine to include the spec file in The alternative to |
@asutoshpalai apply the following and add the magic comment at the end of the line with the sleep diff --git a/spec/quality_spec.rb b/spec/quality_spec.rb
index d5178d7..57e737c 100644
--- a/spec/quality_spec.rb
+++ b/spec/quality_spec.rb
@@ -28,7 +28,9 @@ describe "The library itself" do
failing_lines = []
File.readlines(filename).each_with_index do |line, number|
- failing_lines << number + 1 if line =~ debugging_mechanisms_regex
+ if line =~ debugging_mechanisms_regex && !line.end_with?("# ignore quality_spec")
+ failing_lines << number + 1
+ end
end
return if failing_lines.empty? |
@asutoshpalai this seems to break some stuff on 1.8.7 |
The variable arguments to yield are breaking some specs in 1.8.7. Will fix those specs with dummy arguments. But the major problem is on 1.8.7 |
that's fine, you can limit the spec to being ruby >= 1.9.3 |
end | ||
RUBY | ||
|
||
it do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The spec needs a name
👍 other than the one comment |
@homu r+ |
📌 Commit 5fcd26d has been approved by |
Fixes INT signal for ruby executables Fixes #4568
☀️ Test successful - status |
Fixes #4568