diff options
author | Carl Raiden Worley <carl.worley@10gen.com> | 2020-10-08 12:24:38 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-10-08 21:43:25 +0000 |
commit | 1d73420f40291c7ae5d798c091f5f1a16fc93b93 (patch) | |
tree | fe4dcb94b9aae45a3ad4ab48823a47ac616e2aeb | |
parent | d51e73db78ed0e93ca2b88bc293fc218c521ae06 (diff) | |
download | mongo-1d73420f40291c7ae5d798c091f5f1a16fc93b93.tar.gz |
SERVER-51172 resmoke sometimes throws TypeError when calculating elapsed time for test
-rw-r--r-- | buildscripts/resmokelib/testing/report.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/buildscripts/resmokelib/testing/report.py b/buildscripts/resmokelib/testing/report.py index 46e3df33e9d..7dc355a4023 100644 --- a/buildscripts/resmokelib/testing/report.py +++ b/buildscripts/resmokelib/testing/report.py @@ -83,6 +83,11 @@ class TestReport(unittest.TestResult): # pylint: disable=too-many-instance-attr # Use the current time as the time that the test finished running. test_info.end_time = combining_time + # If we receive a SIGUSR1 then we may start combining reports before + # their start time has been set. + if test_info.start_time is None: + test_info.start_time = combining_time + combined_report.test_infos.append(test_info) combined_report.num_dynamic += report.num_dynamic |