aboutsummaryrefslogtreecommitdiffstats
path: root/railties/Rakefile
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2017-09-04 02:25:26 +0930
committerMatthew Draper <matthew@trebex.net>2017-09-04 20:19:39 +0930
commit802ce8a2392d3f749e665d4f9e54790cf613aaf9 (patch)
treec918e029aabc60a84afe7714030e35e81dffc0ec /railties/Rakefile
parent07bac9ef93d98a1e31cd5b2ce2aabc1e57816604 (diff)
downloadrails-802ce8a2392d3f749e665d4f9e54790cf613aaf9.tar.gz
rails-802ce8a2392d3f749e665d4f9e54790cf613aaf9.tar.bz2
rails-802ce8a2392d3f749e665d4f9e54790cf613aaf9.zip
Run in-app rails commands via fork+load where possible
While this avoids shell argument parsing, we still pass through everything in our stack.
Diffstat (limited to 'railties/Rakefile')
-rw-r--r--railties/Rakefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/railties/Rakefile b/railties/Rakefile
index be7d9f96a2..74615d2358 100644
--- a/railties/Rakefile
+++ b/railties/Rakefile
@@ -45,7 +45,12 @@ namespace :test do
# We could run these in parallel, but pretty much all of the
# railties tests already run in parallel, so ¯\_(⊙︿⊙)_/¯
- Process.waitpid fork { ARGV.clear; load file }
+ Process.waitpid fork {
+ ARGV.clear
+ Rake.application = nil
+
+ load file
+ }
unless $?.success?
failing_files << file