lib/tork/master.rb in tork-15.1.0 vs lib/tork/master.rb in tork-16.0.0
- old
+ new
@@ -18,19 +18,19 @@
end
@client.print @command_line
end
- def test test_file, test_names
+ def test test_file, line_numbers
# throttle forking rate to meet the maximum concurrent workers limit
sleep 1 until @command_by_worker_pid.size < Config.max_forked_workers
log_file = test_file + '.log'
worker_number = @worker_number_pool.shift
Config.before_fork_hooks.each do |hook|
- hook.call worker_number, log_file, test_file, test_names
+ hook.call worker_number, log_file, test_file, line_numbers
end
worker_pid = fork do
# make the process title Test::Unit friendly and ps(1) searchable
$0 = "tork-worker[#{worker_number}] #{test_file}"
@@ -44,10 +44,10 @@
# capture test output in log file because tests are run in parallel
# which makes it difficult to understand interleaved output thereof
STDERR.reopen(STDOUT.reopen(log_file, 'w')).sync = true
Config.after_fork_hooks.each do |hook|
- hook.call worker_number, log_file, test_file, test_names
+ hook.call worker_number, log_file, test_file, line_numbers
end
# after loading the user's test file, the at_exit() hook of the user's
# testing framework will take care of running the tests and reflecting
# any failures in the worker process' exit status, which will then be