diff options
author | Carl Raiden Worley <carl.worley@10gen.com> | 2020-01-30 13:32:00 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-01-30 20:50:35 +0000 |
commit | 94bd81eb2dce3e744a922b27d710ce192a8a3662 (patch) | |
tree | 5acd94da5140ed2ae73c002d76dd6ad6f0737091 /buildscripts | |
parent | ab01304d9c3e2b635f43a88920eef629be26c56e (diff) | |
download | mongo-94bd81eb2dce3e744a922b27d710ce192a8a3662.tar.gz |
SERVER-45864 Record the start time for tests after creating the test logger
Diffstat (limited to 'buildscripts')
-rw-r--r-- | buildscripts/resmokelib/testing/report.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildscripts/resmokelib/testing/report.py b/buildscripts/resmokelib/testing/report.py index 49709a063cc..4849bf6363c 100644 --- a/buildscripts/resmokelib/testing/report.py +++ b/buildscripts/resmokelib/testing/report.py @@ -93,7 +93,6 @@ class TestReport(unittest.TestResult): # pylint: disable=too-many-instance-attr unittest.TestResult.startTest(self, test) test_info = _TestInfo(test.id(), test.test_name, test.dynamic) - test_info.start_time = time.time() basename = test.basename() command = test.as_command() @@ -113,6 +112,7 @@ class TestReport(unittest.TestResult): # pylint: disable=too-many-instance-attr test_info.url_endpoint = test_logger.url_endpoint test.override_logger(test_logger) + test_info.start_time = time.time() def stopTest(self, test): # pylint: disable=invalid-name """Call after 'test' has run.""" |