diff options
author | Carl Worley <carl.worley@mongodb.com> | 2019-11-25 14:06:43 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-11-25 14:06:43 +0000 |
commit | 91fc73a60e523e40defcaa8b6cd808a3091aec34 (patch) | |
tree | 2ca5692e8139fe680d7bcf56a06df7aade8cef36 /buildscripts/resmokelib | |
parent | d455f65337d0e6ed7c96b9fea798d21daf917b8c (diff) | |
download | mongo-91fc73a60e523e40defcaa8b6cd808a3091aec34.tar.gz |
“SERVER-44810
Diffstat (limited to 'buildscripts/resmokelib')
-rw-r--r-- | buildscripts/resmokelib/testing/suite.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/buildscripts/resmokelib/testing/suite.py b/buildscripts/resmokelib/testing/suite.py index bac61c964fd..8d75c62579a 100644 --- a/buildscripts/resmokelib/testing/suite.py +++ b/buildscripts/resmokelib/testing/suite.py @@ -336,13 +336,12 @@ class Suite(object): # pylint: disable=too-many-instance-attributes test_names.append(test_info.test_file) sb.append(" %s" % (test_info.test_file)) - test_names.sort(key=_report.test_order) - - sb.append("If you're unsure where to begin investigating these errors, \ - consider looking at tests in the following order:") - - for test_name in test_names: - sb.append(" %s" % (test_name)) + if num_failed > 0 or report.num_errored > 0: + test_names.sort(key=_report.test_order) + sb.append("If you're unsure where to begin investigating these errors, " + "consider looking at tests in the following order:") + for test_name in test_names: + sb.append(" %s" % (test_name)) return summary |