mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-06 12:40:02 +00:00
generate_test_keys: add missing flush at the end of script
Ensure that all the data is actually written to the output file. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
c21147efe7
commit
0ddab0ecee
@ -91,6 +91,7 @@ def get_look_up_table_entry(key_type: str, group_id_or_keybits: str,
|
||||
yield " {0}, sizeof({0}),\n".format(priv_array_name)
|
||||
yield " {0}, sizeof({0}) }},".format(pub_array_name)
|
||||
|
||||
#pylint: disable=too-many-locals
|
||||
def main() -> None:
|
||||
default_output_path = guess_project_root() + "/tests/src/test_keys.h"
|
||||
|
||||
@ -166,6 +167,7 @@ struct predefined_key_element predefined_keys[] = {
|
||||
""")
|
||||
output_file.write("\n".join(look_up_table))
|
||||
output_file.write("\n};\n")
|
||||
output_file.flush()
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
Loading…
x
Reference in New Issue
Block a user