lib/tork/master.rb in tork-17.0.1 vs lib/tork/master.rb in tork-17.1.0
- old
+ new
@@ -8,19 +8,21 @@
extend self
def load paths, files
$LOAD_PATH.unshift(*paths)
- files.each do |file|
+ @overhead_files = files.each do |file|
branch, leaf = File.split(file)
file = leaf if paths.include? branch
require file.sub(/\.rb$/, '')
end
@client.send @command
end
def test test_file, line_numbers
+ return if @overhead_files.include? test_file
+
# 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