Bug 1020625 - Don't call structured logging's suite_start and suite_end per test suite. r=jgraham

This commit is contained in:
Chris Manchester 2014-06-09 12:01:26 -04:00
parent bf3556743d
commit d434285aa7
2 changed files with 9 additions and 3 deletions

View File

@ -33,7 +33,10 @@ class StructuredTestResult(TextTestResult):
return debug_info
def startTestRun(self):
self.logger.suite_start(tests=self.test_list)
# This would be an opportunity to call the logger's suite_start action,
# however some users may use multiple suites, and per the structured
# logging protocol, this action should only be called once.
pass
def startTest(self, test):
self.testsRun += 1
@ -43,7 +46,10 @@ class StructuredTestResult(TextTestResult):
pass
def stopTestRun(self):
self.logger.suite_end()
# This would be an opportunity to call the logger's suite_end action,
# however some users may use multiple suites, and per the structured
# logging protocol, this action should only be called once.
pass
def addError(self, test, err):
self.errors.append((test, self._exc_info_to_string(err, test)))

View File

@ -4,7 +4,7 @@
from setuptools import setup, find_packages
PACKAGE_VERSION = '0.5'
PACKAGE_VERSION = '0.6'
# dependencies
deps = ['mozinfo']