Remove _NS & _PSA from test_spec.json

pull/9953/head
Oren Cohen 2019-03-05 20:38:08 +02:00 committed by Oren Cohen
parent 63dd5cba35
commit 39e5ccf3e2
1 changed files with 6 additions and 0 deletions

View File

@ -2380,6 +2380,12 @@ def build_tests(tests, base_source_paths, build_path, target, toolchain_name,
def test_spec_from_test_builds(test_builds): def test_spec_from_test_builds(test_builds):
for build in test_builds:
if Target.get_target(test_builds[build]['platform']).is_PSA_non_secure_target:
if test_builds[build]['platform'].endswith('_NS'):
test_builds[build]['platform'] = test_builds[build]['platform'][:-3]
if test_builds[build]['platform'].endswith('_PSA'):
test_builds[build]['platform'] = test_builds[build]['platform'][:-4]
return { return {
"builds": test_builds "builds": test_builds
} }