lib/testr/driver.rb in testr-14.1.1 vs lib/testr/driver.rb in testr-14.1.2
- old
+ new
@@ -29,20 +29,22 @@
def reabsorb_overhead_files very_first_time = false
quit_herald_and_master unless very_first_time
@master = Client::Transceiver.new('testr-master') do |line|
- event, file = JSON.load(line)
+ event, file, tests = JSON.load(line)
case event.to_sym
when :test
@waiting_test_files.delete file
@running_test_files.push file
when :pass
@running_test_files.delete file
@failed_test_files.delete file
- @passed_test_files.push file unless @passed_test_files.include? file
+ if tests.empty? and not @passed_test_files.include? file
+ @passed_test_files.push file
+ end
when :fail
@running_test_files.delete file
@passed_test_files.delete file
@failed_test_files.push file unless @failed_test_files.include? file