diff --git a/tools/test_api.py b/tools/test_api.py index 93cf9c970f..278121a162 100644 --- a/tools/test_api.py +++ b/tools/test_api.py @@ -2274,9 +2274,9 @@ def test_spec_from_test_builds(test_builds): for build in test_builds: # Convert TZ target name to test spec platform name # - # 1. All TZ targets should have name pattern: PLATFORM_[PSA_/NPSA_]S/NS, where: + # 1. All TZ targets should have name pattern: PLATFORM_[NPSA_]S/NS, where: # (1) 'PLATFORM' for test spec platform name - # (2) 'PSA/NPSA' for PSA/non-PSA targets. Defaults to PSA target on absent. + # (2) 'NPSA' for non-PSA targets. Defaults to PSA target if absent. # (3) 'S'/'NS' for secure/non-secure targets # 2. Secure target may participate in Greentea, so its name is also truncated here. if Target.get_target(test_builds[build]['platform']).is_TrustZone_target: @@ -2285,9 +2285,7 @@ def test_spec_from_test_builds(test_builds): elif test_builds[build]['platform'].endswith('_S'): test_builds[build]['platform'] = test_builds[build]['platform'][:-2] - if test_builds[build]['platform'].endswith('_PSA'): - test_builds[build]['platform'] = test_builds[build]['platform'][:-4] - elif test_builds[build]['platform'].endswith('_NPSA'): + if test_builds[build]['platform'].endswith('_NPSA'): test_builds[build]['platform'] = test_builds[build]['platform'][:-5] return { "builds": test_builds