diff options
Diffstat (limited to 'qa/tasks/knapsack.rake')
-rw-r--r-- | qa/tasks/knapsack.rake | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/qa/tasks/knapsack.rake b/qa/tasks/knapsack.rake index cfc11d0ba24..fe9a9c4586f 100644 --- a/qa/tasks/knapsack.rake +++ b/qa/tasks/knapsack.rake @@ -16,9 +16,15 @@ namespace :knapsack do exit QA::Specs::KnapsackRunner.run(rspec_args) end - desc "Download latest knapsack report" + desc "Download latest knapsack report or multiple reports passed via QA_KNAPSACK_REPORTS env variable" task :download do - QA::Support::KnapsackReport.download_report + next QA::Support::KnapsackReport.download_report unless ENV["QA_KNAPSACK_REPORTS"] + + ENV["QA_KNAPSACK_REPORTS"].split(",").each do |report_name| + QA::Support::KnapsackReport.new(report_name).download_report + rescue StandardError => e + QA::Runtime::Logger.error(e) + end end desc "Merge and upload knapsack report" @@ -28,7 +34,7 @@ namespace :knapsack do desc "Report long running spec files" task :notify_long_running_specs do - QA::Support::LongRunningSpecReporter.execute + QA::Tools::LongRunningSpecReporter.execute end end # rubocop:enable Rails/RakeEnvironment |