mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Pulled minitest r4373
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f9c35bce1b
commit
b9a41f00b7
1 changed files with 5 additions and 1 deletions
|
@ -318,12 +318,16 @@ module MiniTest
|
|||
@@installed_at_exit ||= false
|
||||
@@out = $stdout
|
||||
|
||||
def self.disable_autorun
|
||||
@@installed_at_exit = true
|
||||
end
|
||||
|
||||
def self.autorun
|
||||
at_exit {
|
||||
exit_code = MiniTest::Unit.new.run(ARGV)
|
||||
exit false if exit_code && exit_code != 0
|
||||
} unless @@installed_at_exit
|
||||
@@installed_at_exit = true
|
||||
disable_autorun
|
||||
end
|
||||
|
||||
def self.output= stream
|
||||
|
|
Loading…
Add table
Reference in a new issue