mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-06-05 21:15:09 +00:00
Merge pull request #118 from Harry-Ramsey/independent-collect-test-cases
Enable collect_test_cases.py to work for TF-PSA-Crypto
This commit is contained in:
@@ -126,9 +126,13 @@ option"""
|
||||
@staticmethod
|
||||
def collect_test_directories():
|
||||
"""Get the relative path for the TLS and Crypto test directories."""
|
||||
mbedtls_root = build_tree.guess_mbedtls_root()
|
||||
directories = [os.path.join(mbedtls_root, 'tests'),
|
||||
os.path.join(mbedtls_root, 'tf-psa-crypto', 'tests')]
|
||||
project_root = build_tree.guess_project_root()
|
||||
if build_tree.looks_like_mbedtls_root(project_root) and not build_tree.is_mbedtls_3_6():
|
||||
directories = [os.path.join(project_root, 'tests'),
|
||||
os.path.join(project_root, 'tf-psa-crypto', 'tests')]
|
||||
else:
|
||||
directories = [os.path.join(project_root, 'tests')]
|
||||
|
||||
directories = [os.path.relpath(p) for p in directories]
|
||||
return directories
|
||||
|
||||
|
||||
Reference in New Issue
Block a user