當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。