Skip to content
This repository
Browse code

Fixed setting exit status when specs run.

  • Loading branch information...
commit 84b9977ffa580ecca88bb4c4e53a869bff1d4e3e 1 parent 6a851d0
Brian Shirai authored May 04, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  Rakefile
4  Rakefile
@@ -105,8 +105,6 @@ class SpecRunner
105 105
   end
106 106
 
107 107
   def initialize
108  
-    self.class.set_at_exit_handler
109  
-
110 108
     unless File.directory? BUILD_CONFIG[:runtime]
111 109
       # Setting these enables the specs to run when rbx has been configured
112 110
       # to be installed, but rake install has not been run yet.
@@ -123,6 +121,8 @@ class SpecRunner
123 121
   end
124 122
 
125 123
   def run(flags=nil)
  124
+    self.class.set_at_exit_handler
  125
+
126 126
     sh("bin/mspec ci #{ENV['CI_MODE_FLAG'] || flags} -d --background", &@handler)
127 127
   end
128 128
 end

0 notes on commit 84b9977

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