# File lib/autotest/preload.rb, line 29
  def run_tests
    hook :run_command

    new_mtime = self.find_files_to_test
    return unless new_mtime
    self.last_mtime = new_mtime

    begin
      # TODO: deal with unit_diff and partial test runs later
      original_argv = ARGV.dup
      ARGV.clear

      @child = fork do
        trap "QUIT", "DEFAULT"
        trap "INT", "DEFAULT"
        files_to_test.keys.each do |file|
          load file
        end
      end
      Process.wait
    ensure
      @child = nil
      ARGV.replace original_argv
    end

    hook :ran_command
  end