aboutsummaryrefslogtreecommitdiffstats
path: root/railties/Rakefile
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2017-09-05 16:32:05 +0930
committerGitHub <noreply@github.com>2017-09-05 16:32:05 +0930
commitc97346ecf257bf4c13c67953483705c09c9e0702 (patch)
tree6e089b8a6ccf52e4bd26ce810df3f3b15532cd5b /railties/Rakefile
parent6b509dd18ca2a132342e9b850c00afc9b2a024b0 (diff)
parent802ce8a2392d3f749e665d4f9e54790cf613aaf9 (diff)
downloadrails-c97346ecf257bf4c13c67953483705c09c9e0702.tar.gz
rails-c97346ecf257bf4c13c67953483705c09c9e0702.tar.bz2
rails-c97346ecf257bf4c13c67953483705c09c9e0702.zip
Merge pull request #30520 from rails/railties-rails-command
Run in-app rails commands via fork+load where possible
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