Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1742)

Unified Diff: build/android/pylib/results/presentation/test_results_presentation.py

Issue 2875803004: Sort suites in suite table based on number of failed test cases. (Closed)
Patch Set: fixes Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/results/presentation/test_results_presentation.py
diff --git a/build/android/pylib/results/presentation/test_results_presentation.py b/build/android/pylib/results/presentation/test_results_presentation.py
index e82b16e544cad44767dcbfd80b2daa20032c38c8..f27d4c12fe51a6d7d0dec46b3b143affe21f7498 100755
--- a/build/android/pylib/results/presentation/test_results_presentation.py
+++ b/build/android/pylib/results/presentation/test_results_presentation.py
@@ -248,8 +248,12 @@ def create_suite_table(results_dict):
else:
footer_row[FAIL_COUNT_INDEX]['class'] += ' success'
+ # Return the suite table on descending order of number of failed test cases.
return (header_row,
jbudorick 2017/05/11 23:07:57 I'm surprised that we're doing this here rather th
the real yoland 2017/05/11 23:30:20 Agree, I think this should be done on the front en
- [[suite_row] for suite_row in suite_row_dict.values()],
+ sorted(
+ [[suite_row] for suite_row in suite_row_dict.values()],
+ key=lambda suite_row: (-1 *
+ suite_row[0][FAIL_COUNT_INDEX]['data'])),
footer_row)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698