From d434285aa790155014f84b76ec3585f15b31deab Mon Sep 17 00:00:00 2001 From: Chris Manchester Date: Mon, 9 Jun 2014 12:01:26 -0400 Subject: [PATCH] Bug 1020625 - Don't call structured logging's suite_start and suite_end per test suite. r=jgraham --- testing/mozbase/moztest/moztest/adapters/unit.py | 10 ++++++++-- testing/mozbase/moztest/setup.py | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/testing/mozbase/moztest/moztest/adapters/unit.py b/testing/mozbase/moztest/moztest/adapters/unit.py index 08317ce998c..1c01cbf72bf 100644 --- a/testing/mozbase/moztest/moztest/adapters/unit.py +++ b/testing/mozbase/moztest/moztest/adapters/unit.py @@ -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))) diff --git a/testing/mozbase/moztest/setup.py b/testing/mozbase/moztest/setup.py index 4283ac0236e..c0076239011 100644 --- a/testing/mozbase/moztest/setup.py +++ b/testing/mozbase/moztest/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages -PACKAGE_VERSION = '0.5' +PACKAGE_VERSION = '0.6' # dependencies deps = ['mozinfo']