예제 #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
    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
    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
    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
    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)