Skip to content

Commit 6c57c9f

Browse files
committed
mbed test with dual core targets
For Dual Core targets, there are in fact 2 sub-targets, CM4 and CM7 targets. This allows to execute tests with boards detected by mbedls.
1 parent 5d64e55 commit 6c57c9f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/test_api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2276,6 +2276,9 @@ def test_spec_from_test_builds(test_builds):
22762276

22772277
if test_builds[build]['platform'].endswith('_NPSA'):
22782278
test_builds[build]['platform'] = test_builds[build]['platform'][:-5]
2279+
# Convert Dual Core target name to test spec platform name
2280+
if test_builds[build]['platform'].endswith('_CM4') or test_builds[build]['platform'].endswith('_CM7'):
2281+
test_builds[build]['platform'] = test_builds[build]['platform'][:-4]
22792282
return {
22802283
"builds": test_builds
22812284
}

0 commit comments

Comments
 (0)