From 6c57c9fd677fbdde7edd8d51ca4b1b6132fae0b6 Mon Sep 17 00:00:00 2001 From: jeromecoutant Date: Mon, 16 Mar 2020 14:36:09 +0100 Subject: [PATCH] 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. --- tools/test_api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/test_api.py b/tools/test_api.py index 88bd8b24db..30f1a3ed71 100644 --- a/tools/test_api.py +++ b/tools/test_api.py @@ -2276,6 +2276,9 @@ def test_spec_from_test_builds(test_builds): if test_builds[build]['platform'].endswith('_NPSA'): test_builds[build]['platform'] = test_builds[build]['platform'][:-5] + # Convert Dual Core target name to test spec platform name + if test_builds[build]['platform'].endswith('_CM4') or test_builds[build]['platform'].endswith('_CM7'): + test_builds[build]['platform'] = test_builds[build]['platform'][:-4] return { "builds": test_builds }