def __init__(self): all_actions = [ 'clobber', 'checkout', 'create-virtualenv', 'read-release-update-config', 'run-tests', ] FirefoxUIUpdateTests.__init__(self, all_actions=all_actions, default_actions=all_actions, config_options=firefox_ui_update_release_config_options, append_env_variables_from_configs=True) self.tools_repo = self.config.get('tools_repo') self.tools_tag = self.config.get('tools_tag') assert self.tools_repo and self.tools_tag, \ 'Without the "--tools-tag" we can\'t clone the releng\'s tools repository.' self.limit_locales = int(self.config.get('limit_locales')) # This will be a list containing one item per release based on configs # from tools/release/updates/*cfg self.releases = None
def __init__(self): all_actions = [ 'clobber', 'checkout', 'create-virtualenv', 'query_minidump_stackwalk', 'read-release-update-config', 'run-tests', ] FirefoxUIUpdateTests.__init__( self, all_actions=all_actions, default_actions=all_actions, config_options=firefox_ui_update_release_config_options, append_env_variables_from_configs=True) self.tools_repo = self.config.get('tools_repo') self.tools_tag = self.config.get('tools_tag') assert self.tools_repo and self.tools_tag, \ 'Without the "--tools-tag" we can\'t clone the releng\'s tools repository.' self.limit_locales = int(self.config.get('limit_locales')) # This will be a list containing one item per release based on configs # from tools/release/updates/*cfg self.releases = None
def checkout(self): """ We checkout the tools repository and update to the right branch for it. """ dirs = self.query_abs_dirs() FirefoxUIUpdateTests.checkout(self) self.vcs_checkout(repo=self.tools_repo, dest=dirs['abs_tools_dir'], revision=self.tools_tag, vcs='hgtool')
def checkout(self): """ We checkout the tools repository and update to the right branch for it. """ dirs = self.query_abs_dirs() FirefoxUIUpdateTests.checkout(self) self.vcs_checkout( repo=self.tools_repo, dest=dirs['abs_tools_dir'], revision=self.tools_tag, vcs='hgtool' )
def query_abs_dirs(self): if self.abs_dirs: return self.abs_dirs abs_dirs = FirefoxUIUpdateTests.query_abs_dirs(self) abs_dirs.update({ 'abs_tools_dir': os.path.join(abs_dirs['abs_work_dir'], 'tools'), }) self.abs_dirs = abs_dirs return self.abs_dirs
#!/usr/bin/env python # ***** BEGIN LICENSE BLOCK ***** # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # ***** END LICENSE BLOCK ***** import os import sys # load modules from parent dir sys.path.insert(1, os.path.dirname(os.path.dirname(sys.path[0]))) from mozharness.mozilla.testing.firefox_ui_tests import FirefoxUIUpdateTests if __name__ == '__main__': myScript = FirefoxUIUpdateTests() myScript.run_and_exit()