lib/tork/master.rb in tork-18.0.0 vs lib/tork/master.rb in tork-18.0.1
- old
+ new
@@ -74,10 +74,10 @@
# 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
# handled by the SIGCHLD trap registered in the master process (below)
- Kernel.load test_file
+ Kernel.load test_file if test_file.end_with? '.rb'
end
@command_by_worker_pid[worker_pid] = @command.push(log_file, worker_number)
@client.send @command
end