Skip to content
Browse files

Fixed the exit status when using the headless gem. Now will properly …

…exit with the same status that your tests exited with.
  • Loading branch information...
1 parent 1e0a1f0 commit 35238e3213da3e4ed3f21168b071d8e940bdb72f @tecnobrat tecnobrat committed Dec 5, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/headless.rb
2 lib/headless.rb
@@ -142,7 +142,9 @@ def hook_at_exit
unless @at_exit_hook_installed
@at_exit_hook_installed = true
at_exit do
+ exit_status = $?.exitstatus if $?.is_a?(Process::Status)
destroy if @destroy_at_exit
+ exit exit_status if exit_status

0 comments on commit 35238e3

Please sign in to comment.
Something went wrong with that request. Please try again.