1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-06-24 01:41:35 +03:00

generate_test_[keys/cert_macros]: minor fixes

- remove new line at beginning of test_keys.h
- add footer at the end of both generated files

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
Valerio Setti
2024-05-06 14:37:25 +02:00
parent d714259c01
commit 3d54a9d7a3
3 changed files with 6 additions and 2 deletions

View File

@ -92,7 +92,7 @@ def get_look_up_table_entry(key_type: str, group_id_or_keybits: str,
def write_output_file(output_file_name: str, arrays: List[str], look_up_table: List[str]):
with open(output_file_name, 'wt') as output:
output.write("""
output.write("""\
/*********************************************************************************
* This file was automatically generated from tests/scripts/generate_test_keys.py.
* Please do not edit it manually.
@ -112,6 +112,8 @@ struct predefined_key_element {{
struct predefined_key_element predefined_keys[] = {{
{}
}};
/* End of generated file */
""".format("\n".join(look_up_table)))