Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix rake test to hardcode CD to avoid using chdir

  • Loading branch information...
commit aed986cecb54171af57b0ee455bc9de7bb439030 1 parent c3d10d1
Nathan Esquenazi nesquena authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  Rakefile
3  Rakefile
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.