Skip to content

Commit 5c0d226

Browse files
author
Cruz Monrreal
authored
Merge pull request #9953 from kfnta/mock_fix
PSA: automatic mocking of PSA targets in test builds
2 parents a87c7c8 + 39e5ccf commit 5c0d226

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/test_api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2380,6 +2380,12 @@ def build_tests(tests, base_source_paths, build_path, target, toolchain_name,
23802380

23812381

23822382
def test_spec_from_test_builds(test_builds):
2383+
for build in test_builds:
2384+
if Target.get_target(test_builds[build]['platform']).is_PSA_non_secure_target:
2385+
if test_builds[build]['platform'].endswith('_NS'):
2386+
test_builds[build]['platform'] = test_builds[build]['platform'][:-3]
2387+
if test_builds[build]['platform'].endswith('_PSA'):
2388+
test_builds[build]['platform'] = test_builds[build]['platform'][:-4]
23832389
return {
23842390
"builds": test_builds
23852391
}

0 commit comments

Comments
 (0)