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)
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)
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)
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)
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)
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)