Browse files

Fix rake test to hardcode CD to avoid using chdir

  • Loading branch information...
1 parent c3d10d1 commit aed986cecb54171af57b0ee455bc9de7bb439030 @nesquena nesquena committed Apr 4, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 Rakefile
View
3 Rakefile
@@ -118,7 +118,8 @@ desc "Run tests for all padrino stack gems"
task :test do
# Omit the padrino metagem since no tests there
GEM_PATHS[0..-2].each do |gem|
- Dir.chdir(File.join(ROOT, gem)) { rake_command "test" }
+ # Hardcode the 'cd' into the command and do not use Dir.chdir because this causes random tests to fail
+ sh "cd #{File.join(ROOT, gem)} && #{Gem.ruby} -S rake test", :verbose => true
end
end

0 comments on commit aed986c

Please sign in to comment.