Chromium Code Reviews| 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) |