module ParallelTests::Tasks

def run_in_parallel(cmd, options={})

def run_in_parallel(cmd, options={})
  count = " -n #{options[:count]}" if options[:count]
  executable = File.expand_path("../../../bin/parallel_test", __FILE__)
  command = "#{executable} --exec '#{cmd}'#{count}#{' --non-parallel' if options[:non_parallel]}"
  abort unless system(command)
end