本文整理汇总了Python中build_options.OPTIONS.weird方法的典型用法代码示例。如果您正苦于以下问题:Python OPTIONS.weird方法的具体用法?Python OPTIONS.weird怎么用?Python OPTIONS.weird使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类build_options.OPTIONS
的用法示例。
在下文中一共展示了OPTIONS.weird方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _process_args
# 需要导入模块: from build_options import OPTIONS [as 别名]
# 或者: from build_options.OPTIONS import weird [as 别名]
def _process_args(raw_args):
args = parse_args(raw_args)
logging.basicConfig(
level=logging.DEBUG if args.output == 'verbose' else logging.WARNING)
OPTIONS.parse_configure_file()
# Limit to one job at a time when running a suite multiple times. Otherwise
# suites start interfering with each others operations and bad things happen.
if args.repeat_runs > 1:
args.jobs = 1
if args.buildbot and OPTIONS.weird():
args.exclude_patterns.append('cts.*')
# Fixup all patterns to at least be a prefix match for all tests.
# This allows options like "-t cts.CtsHardwareTestCases" to work to select all
# the tests in the suite.
args.include_patterns = [(pattern if '*' in pattern else (pattern + '*'))
for pattern in args.include_patterns]
args.exclude_patterns = [(pattern if '*' in pattern else (pattern + '*'))
for pattern in args.exclude_patterns]
set_test_options(args)
set_test_config_flags(args)
set_test_global_state(args)
if (not args.remote and args.buildbot and
not platform_util.is_running_on_cygwin()):
print_chrome_version()
if platform_util.is_running_on_remote_host():
args.run_ninja = False
return args
示例2: _SuiteRunConfiguration
# 需要导入模块: from build_options import OPTIONS [as 别名]
# 或者: from build_options.OPTIONS import weird [as 别名]
if configuration.get('enable_if', True):
for key, value in configuration.iteritems():
evaluators[key](output, value)
_eval_config_expected_failing_tests = _eval_suite_test_expectations
_eval_config_flags = _eval_flags
_eval_config_bug = _eval_bug
_eval_config_deadline = _eval_deadline
default_run_configuration = lambda: _SuiteRunConfiguration(None, config={
'flags': PASS,
'suite_test_expectations': {},
'deadline': 300, # Seconds
'configurations': [{
'enable_if': OPTIONS.weird(),
'flags': FLAKY,
}, {
'enable_if': platform_util.is_running_on_cygwin(),
'bug': 'crbug.com/361474',
'flags': FLAKY,
}],
'metadata': {}
}).evaluate()
def make_suite_run_configs(raw_config):
def _deferred():
global_defaults = default_run_configuration()
raw_config_dict = raw_config()