File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -2274,20 +2274,19 @@ def test_spec_from_test_builds(test_builds):
2274
2274
for build in test_builds :
2275
2275
# Convert TZ target name to test spec platform name
2276
2276
#
2277
- # 1. All TZ targets should have name pattern: PLATFORM_[PSA_ ]S/NS, where:
2277
+ # 1. All TZ targets should have name pattern: PLATFORM_[NPSA_ ]S/NS, where:
2278
2278
# (1) 'PLATFORM' for test spec platform name
2279
- # (2) 'PSA' is optional to distinguish PSA/non-PSA targets, especially when
2280
- # both PSA/non-PSA targets are supported
2279
+ # (2) 'NPSA' for non-PSA targets. Defaults to PSA target if absent.
2281
2280
# (3) 'S'/'NS' for secure/non-secure targets
2282
2281
# 2. Secure target may participate in Greentea, so its name is also truncated here.
2283
2282
if Target .get_target (test_builds [build ]['platform' ]).is_TrustZone_target :
2284
2283
if test_builds [build ]['platform' ].endswith ('_NS' ):
2285
2284
test_builds [build ]['platform' ] = test_builds [build ]['platform' ][:- 3 ]
2286
2285
elif test_builds [build ]['platform' ].endswith ('_S' ):
2287
2286
test_builds [build ]['platform' ] = test_builds [build ]['platform' ][:- 2 ]
2288
-
2289
- if test_builds [build ]['platform' ].endswith ('_PSA ' ):
2290
- test_builds [build ]['platform' ] = test_builds [build ]['platform' ][:- 4 ]
2287
+
2288
+ if test_builds [build ]['platform' ].endswith ('_NPSA ' ):
2289
+ test_builds [build ]['platform' ] = test_builds [build ]['platform' ][:- 5 ]
2291
2290
return {
2292
2291
"builds" : test_builds
2293
2292
}
You can’t perform that action at this time.
0 commit comments