bin/parallel_test in parallel_tests-0.6.17 vs bin/parallel_test in parallel_tests-0.6.18
- old
+ new
@@ -77,10 +77,14 @@
num_tests = groups.inject(0){|sum,item| sum + item.size }
puts "#{num_processes} processes for #{num_tests} #{name}s, ~ #{num_tests / groups.size} #{name}s per process"
test_results = Parallel.map(groups, :in_processes => num_processes) do |group|
- klass.run_tests(group, groups.index(group), options)
+ if group.empty?
+ {:stdout => '', :exit_status => 0}
+ else
+ klass.run_tests(group, groups.index(group), options)
+ end
end
#parse and print results
results = klass.find_results(test_results.map{|result| result[:stdout] }*"")
puts ""