1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Updated miniunit to 1.3.0 r4256.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ryan 2008-09-30 04:57:06 +00:00
parent abf17f3586
commit b43dae5873
2 changed files with 6 additions and 6 deletions

View file

@ -3,11 +3,10 @@ Tue Sep 30 13:19:01 2008 Eric Hodel <drbrain@segment7.net>
* test/rubygems/test_gem_installer.rb: remove extra call to setup to * test/rubygems/test_gem_installer.rb: remove extra call to setup to
fix ENV['HOME'] pollution. fix ENV['HOME'] pollution.
Tue Sep 30 13:04:11 2008 Ryan Davis <ryan@wrath.local> Tue Sep 30 13:04:11 2008 Ryan Davis <ryand-ruby@zenspider.com>
* lib/mini/test.rb: Updated to 1.3.0 r4255. * lib/mini/test.rb: Updated to 1.3.0 r4256.
* test/mini/*: added from r4255. * test/mini/*: added from r4255.
* lib/mini/test.rb: rolled out change 19608... not 1.8 compatible.
Tue Sep 30 07:46:07 2008 Eric Hodel <drbrain@segment7.net> Tue Sep 30 07:46:07 2008 Eric Hodel <drbrain@segment7.net>

View file

@ -24,6 +24,7 @@ module Mini
__FILE__ __FILE__
end end
# './lib' in project dir, or '/usr/local/blahblah' if installed
MINI_DIR = File.dirname(File.dirname(file)) MINI_DIR = File.dirname(File.dirname(file))
def self.filter_backtrace bt def self.filter_backtrace bt
@ -31,11 +32,11 @@ module Mini
new_bt = [] new_bt = []
bt.each do |line| bt.each do |line|
break if line.index(MINI_DIR) == 0 break if line.rindex(MINI_DIR, 0)
new_bt << line new_bt << line
end end
new_bt = bt.reject { |line| line.index(MINI_DIR) == 0 } if new_bt = bt.reject { |line| line.rindex(MINI_DIR, 0) } if
new_bt.empty? new_bt.empty?
new_bt = bt.dup if new_bt.empty? new_bt = bt.dup if new_bt.empty?
@ -320,7 +321,7 @@ module Mini
def self.autorun def self.autorun
at_exit { at_exit {
exit_code = Mini::Test.new.run(ARGV) exit_code = Mini::Test.new.run(ARGV)
exit false if exit_code exit false if exit_code && exit_code != 0
} unless @@installed_at_exit } unless @@installed_at_exit
@@installed_at_exit = true @@installed_at_exit = true
end end