当前位置: 首页>>代码示例>>Python>>正文


Python OPTIONS.weird方法代码示例

本文整理汇总了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
开发者ID:NaiveTorch,项目名称:ARC,代码行数:37,代码来源:run_integration_tests.py

示例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()
开发者ID:NaiveTorch,项目名称:ARC,代码行数:32,代码来源:suite_runner_config.py


注:本文中的build_options.OPTIONS.weird方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。