예제 #1
0
    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
예제 #2
0
    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
예제 #3
0
    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')
예제 #4
0
    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'
        )
예제 #5
0
    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
예제 #6
0
    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
예제 #7
0
#!/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()
예제 #8
0
파일: update.py 프로젝트: MekliCZ/positron
#!/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()