From 802ce8a2392d3f749e665d4f9e54790cf613aaf9 Mon Sep 17 00:00:00 2001 From: Matthew Draper Date: Mon, 4 Sep 2017 02:25:26 +0930 Subject: Run in-app rails commands via fork+load where possible While this avoids shell argument parsing, we still pass through everything in our stack. --- railties/Rakefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'railties/Rakefile') 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 -- cgit v1.2.3