Created
November 20, 2012 00:16
-
-
Save xabolcs/4115084 to your computer and use it in GitHub Desktop.
Dumb fix for mozmill-automation 'EnduranceTestrun'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/mozmill_automation/testrun.py b/mozmill_automation/testrun.py | |
--- a/mozmill_automation/testrun.py | |
+++ b/mozmill_automation/testrun.py | |
@@ -468,6 +468,34 @@ | |
""" Execute the endurance tests in sequence. """ | |
self.endurance_results = [] | |
+ | |
+ # instantiate handlers | |
+ logger = mozmill.logger.LoggerListener(log_file=self.options.logfile, | |
+ console_level=self.debug and 'DEBUG' or 'INFO', | |
+ file_level=self.debug and 'DEBUG' or 'INFO', | |
+ debug=self.debug) | |
+ handlers = [logger] | |
+ if self.options.report_url: | |
+ self.report = reports.DashboardReport(self.options.report_url, self) | |
+ handlers.append(self.report) | |
+ | |
+ if self.options.junit_file: | |
+ filename = files.get_unique_filename(self.options.junit_file, | |
+ self.testrun_index) | |
+ self.junit_report = reports.JUnitReport(filename, self) | |
+ handlers.append(self.junit_report) | |
+ | |
+ # instantiate MozMill | |
+ profile_args = dict(addons=self.addon_list) | |
+ runner_args = dict(binary=self._application) | |
+ mozmill_args = dict(app=self.options.application, | |
+ handlers=handlers, | |
+ profile_args=profile_args, | |
+ runner_args=runner_args) | |
+ if self.timeout: | |
+ mozmill_args['jsbridge_timeout'] = self.timeout | |
+ self._mozmill = mozmill.MozMill.create(**mozmill_args) | |
+ | |
self._mozmill.add_listener(self.endurance_event, eventType='mozmill.enduranceResults') | |
self.persisted['endurance'] = {'delay': self.delay, | |
'iterations': self.options.iterations, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment