Permalink
Browse files

Fixed setting exit status when specs run.

  • Loading branch information...
1 parent 6a851d0 commit 84b9977ffa580ecca88bb4c4e53a869bff1d4e3e @brixen brixen committed May 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Rakefile
View
@@ -105,8 +105,6 @@ class SpecRunner
end
def initialize
- self.class.set_at_exit_handler
-
unless File.directory? BUILD_CONFIG[:runtime]
# Setting these enables the specs to run when rbx has been configured
# to be installed, but rake install has not been run yet.
@@ -123,6 +121,8 @@ class SpecRunner
end
def run(flags=nil)
+ self.class.set_at_exit_handler
+
sh("bin/mspec ci #{ENV['CI_MODE_FLAG'] || flags} -d --background", &@handler)
end
end

0 comments on commit 84b9977

Please sign in to comment.