From 5ab9ccae60df969160201d8f4477bbe1029aaabb Mon Sep 17 00:00:00 2001 From: Ben Asher Date: Fri, 12 Aug 2016 07:58:10 -0700 Subject: Exit when signaled Closes: #30 [via git-merge-pr] --- lib/bacon.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/bacon.rb b/lib/bacon.rb index 045a910..b15c172 100644 --- a/lib/bacon.rb +++ b/lib/bacon.rb @@ -192,6 +192,8 @@ module Bacon raise e unless rescued end end + rescue SystemExit, Interrupt + raise # Re-raise signal to kill the test run rescue Object => e ErrorLog << "#{e.class}: #{e.message}\n" e.backtrace.find_all { |line| line !~ /bin\/bacon|\/bacon\.rb:\d+/ }. -- cgit 1.4.1