Skip to content

Commit fd307a9

Browse files
Update paths in generate_test_cert_macros.py
Tell the test certificate generation script to get the jinja template from, and output the resulting header to, the framework repo. Signed-off-by: David Horstmann <david.horstmann@arm.com>
1 parent 056d640 commit fd307a9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/generate_test_cert_macros.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
import jinja2
1616
from mbedtls_framework.build_tree import guess_project_root
1717

18-
TEST_DIR = os.path.join(guess_project_root(), 'tests')
19-
DATA_FILES_PATH = os.path.join(TEST_DIR, 'data_files')
18+
TESTS_DIR = os.path.join(guess_project_root(), 'tests')
19+
FRAMEWORK_DIR = os.path.join(guess_project_root(), 'framework')
20+
DATA_FILES_PATH = os.path.join(FRAMEWORK_DIR, 'data_files')
2021

2122
INPUT_ARGS = [
2223
("string", "TEST_CA_CRT_EC_PEM", DATA_FILES_PATH + "/test-ca2.crt"),
@@ -53,7 +54,7 @@
5354

5455
def main():
5556
parser = argparse.ArgumentParser()
56-
default_output_path = os.path.join(TEST_DIR, 'src', 'test_certs.h')
57+
default_output_path = os.path.join(TESTS_DIR, 'src', 'test_certs.h')
5758
parser.add_argument('--output', type=str, default=default_output_path)
5859
parser.add_argument('--list-dependencies', action='store_true')
5960
args = parser.parse_args()

0 commit comments

Comments
 (0)