summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib/testing/report.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/resmokelib/testing/report.py')
-rw-r--r--buildscripts/resmokelib/testing/report.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/buildscripts/resmokelib/testing/report.py b/buildscripts/resmokelib/testing/report.py
index b9cccccc14f..e3c68393a4d 100644
--- a/buildscripts/resmokelib/testing/report.py
+++ b/buildscripts/resmokelib/testing/report.py
@@ -147,7 +147,7 @@ class TestReport(unittest.TestResult):
unittest.TestResult.stopTest(self, test)
with self._lock:
- test_info = self._find_test_info(test)
+ test_info = self.find_test_info(test)
test_info.end_time = time.time()
time_taken = test_info.end_time - test_info.start_time
@@ -177,7 +177,7 @@ class TestReport(unittest.TestResult):
with self._lock:
self.num_errored += 1
- test_info = self._find_test_info(test)
+ test_info = self.find_test_info(test)
test_info.status = "error"
test_info.return_code = test.return_code
@@ -187,7 +187,7 @@ class TestReport(unittest.TestResult):
"""
with self._lock:
- test_info = self._find_test_info(test)
+ test_info = self.find_test_info(test)
if test_info.end_time is None:
raise ValueError("stopTest was not called on %s" % (test.basename()))
@@ -211,7 +211,7 @@ class TestReport(unittest.TestResult):
with self._lock:
self.num_failed += 1
- test_info = self._find_test_info(test)
+ test_info = self.find_test_info(test)
test_info.status = "fail"
test_info.return_code = test.return_code
@@ -221,7 +221,7 @@ class TestReport(unittest.TestResult):
"""
with self._lock:
- test_info = self._find_test_info(test)
+ test_info = self.find_test_info(test)
if test_info.end_time is None:
raise ValueError("stopTest was not called on %s" % (test.basename()))
@@ -244,7 +244,7 @@ class TestReport(unittest.TestResult):
with self._lock:
self.num_succeeded += 1
- test_info = self._find_test_info(test)
+ test_info = self.find_test_info(test)
test_info.status = "pass"
test_info.return_code = test.return_code
@@ -352,7 +352,7 @@ class TestReport(unittest.TestResult):
# protecting it with the lock.
self.__original_loggers = {}
- def _find_test_info(self, test):
+ def find_test_info(self, test):
"""
Returns the status and timing information associated with
'test'.