lib/tasks/queue/minitest.rake in knapsack_pro-7.1.0 vs lib/tasks/queue/minitest.rake in knapsack_pro-7.6.0

- old
+ new

@@ -3,17 +3,10 @@ require 'knapsack_pro' namespace :knapsack_pro do namespace :queue do task :minitest, [:minitest_args] do |_, args| - Kernel.system("RAILS_ENV=test RACK_ENV=test #{$PROGRAM_NAME} 'knapsack_pro:queue:minitest_go[#{args[:minitest_args]}]'") - exitstatus = $?.exitstatus - if exitstatus.nil? - puts 'Something went wrong. Most likely, the process has been killed. Knapsack Pro has been terminated.' - Kernel.exit(1) - else - Kernel.exit(exitstatus) - end + Kernel.exec("RAILS_ENV=test RACK_ENV=test #{$PROGRAM_NAME} 'knapsack_pro:queue:minitest_go[#{args[:minitest_args]}]'") end task :minitest_go, [:minitest_args] do |_, args| KnapsackPro::Runners::Queue::MinitestRunner.run(args[:minitest_args]) end