From 0eb110bb1f8aec29fcb060e8bd45acf9fb98fcdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Pag=C3=A8s?= Date: Sun, 19 Oct 2014 11:20:00 +0200 Subject: [PATCH] Bug 1083237 - Wrong test suite duration when using mozlog as test reporter. r=mdas --- testing/marionette/client/marionette/runner/base.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/testing/marionette/client/marionette/runner/base.py b/testing/marionette/client/marionette/runner/base.py index bdf2da2b2f45..a785e7779510 100644 --- a/testing/marionette/client/marionette/runner/base.py +++ b/testing/marionette/client/marionette/runner/base.py @@ -612,7 +612,12 @@ class BaseMarionetteTestRunner(object): def run_tests(self, tests): self.reset_test_stats() + + for test in tests: + self.add_test(test) + self.start_time = time.time() + self.logger.suite_start(self.tests) need_external_ip = True if not self.marionette: @@ -631,11 +636,6 @@ class BaseMarionetteTestRunner(object): self.logger.info("starting httpd") self.start_httpd(need_external_ip) - for test in tests: - self.add_test(test) - - self.logger.suite_start(self.tests) - for test in self.manifest_skipped_tests: name = os.path.basename(test['path']) self.logger.test_start(name)