mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
lib/test/unit.rb: format workers results in the parent
* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): format workers results in the parent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3f6e8aef37
commit
ff49900ab4
2 changed files with 6 additions and 3 deletions
|
@ -614,7 +614,9 @@ module Test
|
|||
end
|
||||
unless rep.empty?
|
||||
rep.each do |r|
|
||||
report.push(*r[:report])
|
||||
r[:report].each do |f|
|
||||
report.push(puke(*f)) if f
|
||||
end
|
||||
end
|
||||
@errors += rep.map{|x| x[:result][0] }.inject(:+)
|
||||
@failures += rep.map{|x| x[:result][1] }.inject(:+)
|
||||
|
|
|
@ -104,8 +104,9 @@ module TestParallel
|
|||
assert_kind_of(Array,result[2])
|
||||
assert_kind_of(Array,result[3])
|
||||
assert_kind_of(Array,result[4])
|
||||
assert_match(/Skipped:$/,result[2][1])
|
||||
assert_match(/Failure:$/,result[2][0])
|
||||
assert_kind_of(Array,result[2][1])
|
||||
assert_kind_of(MiniTest::Assertion,result[2][0][2])
|
||||
assert_kind_of(MiniTest::Skip,result[2][1][2])
|
||||
assert_equal(result[5], "TestE")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue