Skip to content

Commit

Permalink
escape paths given from tasks to executables
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Mar 1, 2010
1 parent fc6a79e commit 7ff279e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/parallel_test
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ else
start = Time.now

tests_folder = File.join(task, options[:path_prefix].to_s)
tests_folder = File.join(options[:root], tests_folder) if options[:root]
tests_folder = File.join(options[:root], tests_folder) unless options[:root].to_s.empty?

groups = klass.tests_in_groups(tests_folder, num_processes)
num_processes = groups.size
Expand Down
2 changes: 1 addition & 1 deletion tasks/parallel_specs.rake
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace :parallel do
task type, :count, :path_prefix, :options do |t,args|
require File.join(File.dirname(__FILE__), '..', 'lib', "parallel_tests")
count, prefix, options = ParallelTests.parse_rake_args(args)
sh "#{File.join(File.dirname(__FILE__), '..', 'bin', 'parallel_test')} --type #{type} -n #{count} -p #{prefix} -r #{RAILS_ROOT} -o #{options}"
sh "#{File.join(File.dirname(__FILE__), '..', 'bin', 'parallel_test')} --type #{type} -n #{count} -p '#{prefix}' -r '#{RAILS_ROOT}' -o '#{options}'"
end
end
end
Expand Down

0 comments on commit 7ff279e

Please sign in to comment.