Skip to content

Commit 935f2bd

Browse files
author
Oren Cohen
committed
Correct behavior of PSA code generator
* Don't generate files if a test does not contain additional partitions
1 parent 8301325 commit 935f2bd

File tree

2 files changed

+3
-83
lines changed

2 files changed

+3
-83
lines changed

TESTS/psa/crypto_init/COMPONENT_SPE/psa_setup.c

Lines changed: 0 additions & 83 deletions
This file was deleted.

tools/spm/generate_partition_code.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,9 @@ def generate_psa_code():
783783
tests_dict[test_root] = [manifest_path for manifest_path in
784784
test_manifest_files if
785785
test_root in manifest_path]
786+
787+
if not tests_dict[test_root]:
788+
continue
786789
tests_dict[test_root] += system_manifest_files
787790
generate_psa_setup(sorted(tests_dict[test_root]), test_root,
788791
weak_setup=False)

0 commit comments

Comments
 (0)