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


Python TEST_MAP.iteritems方法代码示例

本文整理汇总了Python中workspace_tools.tests.TEST_MAP.iteritems方法的典型用法代码示例。如果您正苦于以下问题:Python TEST_MAP.iteritems方法的具体用法?Python TEST_MAP.iteritems怎么用?Python TEST_MAP.iteritems使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在workspace_tools.tests.TEST_MAP的用法示例。


在下文中一共展示了TEST_MAP.iteritems方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: build_mbed_libs

# 需要导入模块: from workspace_tools.tests import TEST_MAP [as 别名]
# 或者: from workspace_tools.tests.TEST_MAP import iteritems [as 别名]
            # print '=== %s::%s ===' % (target, toolchain)
            # Let's build our test
            if target not in TARGET_MAP:
                print 'Skipped tests for %s target. Target platform not found' % (target)
                continue

            T = TARGET_MAP[target]
            build_mbed_libs_options = ["analyze"] if opts.goanna_for_mbed_sdk else None
            build_mbed_libs_result = build_mbed_libs(T, toolchain, options=build_mbed_libs_options)
            if not build_mbed_libs_result:
                print 'Skipped tests for %s target. Toolchain %s is not yet supported for this target' % (T.name, toolchain)
                continue

            build_dir = join(BUILD_DIR, "test", target, toolchain)

            for test_id, test in TEST_MAP.iteritems():
                if opts.test_by_names and test_id not in opts.test_by_names.split(','):
                    continue

                if test_ids and test_id not in test_ids:
                    continue

                if opts.test_only_peripheral and not test.peripherals:
                    if opts.verbose_skipped_tests:
                        print "TargetTest::%s::NotPeripheralTestSkipped()" % (target)
                    continue

                if opts.test_only_common and test.peripherals:
                    if opts.verbose_skipped_tests:
                        print "TargetTest::%s::PeripheralTestSkipped()" % (target)
                    continue
开发者ID:NordicSemiconductor,项目名称:mbed,代码行数:33,代码来源:singletest.py


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