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> | 2021-05-10 14:59:13 +0000 |
commit | c023c02829746ddb3e019ba6fe8a7738211c17f0 (patch) | |
tree | 0f75b890e0eb0cb5754f45f5e03f1e40920be466 /buildscripts | |
parent | 57675b4b137510c382d35a2aee7eaded9ff61fe5 (diff) | |
download | mongo-c023c02829746ddb3e019ba6fe8a7738211c17f0.tar.gz |
SERVER-51172 resmoke sometimes throws TypeError when calculating elapsed time for test
(cherry picked from commit 1d73420f40291c7ae5d798c091f5f1a16fc93b93)
Diffstat (limited to 'buildscripts')
-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 4849bf6363c..b789d8338c0 100644 --- a/buildscripts/resmokelib/testing/report.py +++ b/buildscripts/resmokelib/testing/report.py @@ -75,6 +75,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 |