Skip to content

Commit

Permalink
only sort if an entire suite is ran
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaumik-Ashraf committed Oct 24, 2024
1 parent 4b478a8 commit 16a21ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/inferno/apps/cli/execute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def run(options)
run_one(suite, test_run)

results = test_runs_repo.results_for_test_run(test_run.id)
results.sort_results(results)
else
all_selected_groups_and_tests.each do |runnable|
test_run = create_test_run(runnable)
Expand All @@ -59,8 +60,6 @@ def run(options)
# User may enter duplicate runnables, in which case this prevents a bug of extraneous results
results.uniq!(&:id)

results = sort_results(results)

outputter.print_results(options, results)
outputter.print_end_message(options)

Expand Down

0 comments on commit 16a21ff

Please sign in to comment.