Permalink
Browse files

Surround with double quotes otherwise our args mess up the rake call.…

… As well when failing, provide the command line to be run to get details.
  • Loading branch information...
1 parent 64e363d commit db0bc163d113e78d0b602c95d5f9ccf024d523c2 @thbar thbar committed Feb 29, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 Rakefile
View
@@ -52,8 +52,9 @@ namespace :ci do
env, gemfile = *x.flatten
db = env.gsub('DB=', '')
print [db, gemfile].inspect.ljust(40) + ": "
- result = system "rake ci:run_one[#{db},#{gemfile}] > /dev/null 2>&1"
- result = result ? "OK" : "FAIL"
+ cmd = "rake \"ci:run_one[#{db},#{gemfile}]\""
+ result = system "#{cmd} > /dev/null 2>&1"
+ result = result ? "OK" : "FAILED! - re-run with: #{cmd}"
puts result
end
end

0 comments on commit db0bc16

Please sign in to comment.