コード例 #1
0
 def __init__(self, **kwargs):
     BaseMarionetteOptions.__init__(self, **kwargs)
     GaiaOptionsMixin.__init__(self, **kwargs)
     HTMLReportingOptionsMixin.__init__(self, **kwargs)
     EnduranceOptionsMixin.__init__(self, **kwargs)
     TreeherderOptionsMixin.__init__(self, **kwargs)
     GaiaImageCompareOptionsMixin.__init__(self, **kwargs)
コード例 #2
0
ファイル: base.py プロジェクト: IamAdiSri/firefox-ui-tests
    def __init__(self, **kwargs):
        BaseMarionetteOptions.__init__(self, **kwargs)

        # Inheriting object must call this __init__ to set up option handling
        self.add_option('--installer',
                        dest='installer',
                        help='installer of a Gecko application to use for running the tests')
コード例 #3
0
ファイル: runtests.py プロジェクト: adrm/gaia
 def __init__(self, **kwargs):
     BaseMarionetteOptions.__init__(self, **kwargs)
     GaiaOptionsMixin.__init__(self, **kwargs)
     HTMLReportingOptionsMixin.__init__(self, **kwargs)
     EnduranceOptionsMixin.__init__(self, **kwargs)
     TreeherderOptionsMixin.__init__(self, **kwargs)
     GaiaImageCompareOptionsMixin.__init__(self, **kwargs)
コード例 #4
0
ファイル: runtests.py プロジェクト: naru-san/firefox-ui-tests
    def __init__(self, **kwargs):
        BaseMarionetteOptions.__init__(self, **kwargs)

        self.add_option('--installer',
                        dest='installer',
                        action='store',
                        help='installer of a Gecko application to use for running the tests')
コード例 #5
0
    def __init__(self, **kwargs):
        BaseMarionetteOptions.__init__(self, **kwargs)

        # Inheriting object must call this __init__ to set up option handling
        self.add_option(
            '--installer',
            dest='installer',
            help='installer of a Gecko application to use for running the tests'
        )
コード例 #6
0
    def parse_args(self, *args, **kwargs):
        options, test_files = BaseMarionetteOptions.parse_args(self,
                                                               *args, **kwargs)

        if not any([(k.startswith('log_') and v is not None and '-' in v)
                    for (k, v) in vars(options).items()]):
            options.log_mach = '-'

        if not test_files:
            test_files = [firefox_puppeteer.manifest, firefox_ui_tests.manifest]
        return (options, test_files)
コード例 #7
0
    def parse_args(self, *args, **kwargs):
        options, test_files = BaseMarionetteOptions.parse_args(
            self, *args, **kwargs)

        if not any([(k.startswith('log_') and v is not None and '-' in v)
                    for (k, v) in vars(options).items()]):
            options.log_mach = '-'

        if not test_files:
            test_files = [
                firefox_puppeteer.manifest, firefox_ui_tests.manifest
            ]
        return (options, test_files)
コード例 #8
0
ファイル: runtests.py プロジェクト: naru-san/firefox-ui-tests
    def parse_args(self, *args, **kwargs):
        options, test_files = BaseMarionetteOptions.parse_args(self, *args, **kwargs)

        # It is not allowed to specify both options for binary and installer
        if options.installer:
            if options.binary:
                self.error('options --binary and --installer are mutually exclusive')

            # Spoofing so verify_usage() is not showing a failure
            options.binary = 'to_be_set'

        if not test_files:
            test_files = [firefox_puppeteer.manifest, firefox_ui_tests.manifest]
        return (options, test_files)
コード例 #9
0
ファイル: base.py プロジェクト: IamAdiSri/firefox-ui-tests
    def parse_args(self, *args, **kwargs):
        options, tests = BaseMarionetteOptions.parse_args(self, *args, **kwargs)

        # Bug 1142064 - We cannot easily extent options because registered handlers
        # are called at the end in MarionetteBaseOptions.verify_usage(). As result it
        # will abort due to no binary specified. Once the bug is fixed we can move
        # the whole block to self.base_verify_usage().
        if options.installer:
            if options.binary:
                self.error('Options --binary and --installer are mutually exclusive.')

            options.binary = 'FAKED_VALUE'

        tests = tests or [firefox_puppeteer.manifest, firefox_ui_tests.manifest_all]

        return (options, tests)
コード例 #10
0
    def parse_args(self, *args, **kwargs):
        options, tests = BaseMarionetteOptions.parse_args(
            self, *args, **kwargs)

        # Bug 1142064 - We cannot easily extent options because registered handlers
        # are called at the end in MarionetteBaseOptions.verify_usage(). As result it
        # will abort due to no binary specified. Once the bug is fixed we can move
        # the whole block to self.base_verify_usage().
        if options.installer:
            if options.binary:
                self.error(
                    'Options --binary and --installer are mutually exclusive.')

            options.binary = 'FAKED_VALUE'

        tests = tests or [
            firefox_puppeteer.manifest, firefox_ui_tests.manifest_all
        ]

        return (options, tests)
コード例 #11
0
ファイル: runtests.py プロジェクト: GotoCode/gaia
 def __init__(self, **kwargs):
     BaseMarionetteOptions.__init__(self, **kwargs)
     GaiaOptionsMixin.__init__(self, **kwargs)
     HTMLReportingOptionsMixin.__init__(self, **kwargs)
     EnduranceOptionsMixin.__init__(self, **kwargs)
コード例 #12
0
 def parse_args(self, *args, **kwargs):
     options, test_files = BaseMarionetteOptions.parse_args(self,
                                                            *args, **kwargs)
     if not test_files:
         test_files = [tests.manifest]
     return (options, test_files)
コード例 #13
0
 def __init__(self, **kwargs):
     BaseMarionetteOptions.__init__(self, **kwargs)
     GaiaOptionsMixin.__init__(self, **kwargs)
     HTMLReportingOptionsMixin.__init__(self, **kwargs)
     EnduranceOptionsMixin.__init__(self, **kwargs)