lib/cucumber/cli/main.rb in cucumber-0.3.91 vs lib/cucumber/cli/main.rb in cucumber-0.3.92
- old
+ new
@@ -135,9 +135,15 @@
end
def trap_interrupt
trap('INT') do
$cucumber_interrupted = true
+ STDERR.puts "Interrupted. Waiting for current step to finish."
+ STDERR.puts "Will suicide in 5 seconds if current step doesn't finish gracefully."
+ Thread.new do
+ sleep(5)
+ exit!(1)
+ end
end
end
end
end
end