зеркало из https://github.com/github/ruby.git
* sample/coverage.rb: preserve exit status.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
0f078cbfc4
Коммит
0f29696f9d
|
@ -1,3 +1,7 @@
|
|||
Sat Jan 23 00:25:19 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* sample/coverage.rb: preserve exit status.
|
||||
|
||||
Sat Jan 23 00:21:18 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* test/ruby/test_dir.rb: get rid of debug print.
|
||||
|
|
|
@ -8,6 +8,7 @@ accum = !accum || accum == "" || !(%w(f n 0).include?(accum[0]))
|
|||
pwd = Dir.pwd
|
||||
|
||||
at_exit do
|
||||
exit_exc = $!
|
||||
Dir.chdir(pwd) do
|
||||
Coverage.result.each do |sfile, covs|
|
||||
cfile = sfile + ext
|
||||
|
@ -57,4 +58,5 @@ at_exit do
|
|||
end
|
||||
end
|
||||
end
|
||||
raise exit_exc if exit_exc
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче