Adapt check-generated-files.sh
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
diff --git a/tests/scripts/test_psa_compliance.py b/tests/scripts/test_psa_compliance.py
index d4e4979..7c09afc 100755
--- a/tests/scripts/test_psa_compliance.py
+++ b/tests/scripts/test_psa_compliance.py
@@ -39,7 +39,14 @@
in_tf_psa_crypto_repo = build_tree.looks_like_tf_psa_crypto_root(root_dir)
crypto_name = build_tree.crypto_library_filename(root_dir)
- library_subdir = build_tree.crypto_core_directory(root_dir, relative=True)
+
+ # Temporary, while the crypto library is still located in the library
+ # directory. This will not be the case anymore when it will be built by
+ # the TF-PSA-Crypto build system.
+ if in_tf_psa_crypto_repo:
+ library_subdir = build_tree.crypto_core_directory(root_dir, relative=True)
+ else:
+ library_subdir = 'library'
crypto_lib_filename = (library_build_dir + '/' +
library_subdir + '/' +