mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-10-02 14:57:22 +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
|
@staticmethod
|
||||||
def collect_test_directories():
|
def collect_test_directories():
|
||||||
"""Get the relative path for the TLS and Crypto test directories."""
|
"""Get the relative path for the TLS and Crypto test directories."""
|
||||||
mbedtls_root = build_tree.guess_mbedtls_root()
|
project_root = build_tree.guess_project_root()
|
||||||
directories = [os.path.join(mbedtls_root, 'tests'),
|
if build_tree.looks_like_mbedtls_root(project_root) and not build_tree.is_mbedtls_3_6():
|
||||||
os.path.join(mbedtls_root, 'tf-psa-crypto', 'tests')]
|
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]
|
directories = [os.path.relpath(p) for p in directories]
|
||||||
return directories
|
return directories
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user