本文整理匯總了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