mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
fix "make generated_files" for test_keys.h and test_certs.h
This also add the check in tests/scripts/check-generated-files.sh Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
@ -131,6 +131,7 @@ check scripts/generate_psa_constants.py programs/psa/psa_constant_names_generate
|
||||
check tests/scripts/generate_bignum_tests.py $(tests/scripts/generate_bignum_tests.py --list)
|
||||
check tests/scripts/generate_ecp_tests.py $(tests/scripts/generate_ecp_tests.py --list)
|
||||
check tests/scripts/generate_psa_tests.py $(tests/scripts/generate_psa_tests.py --list)
|
||||
check tests/scripts/generate_test_keys.py tests/src/test_keys.h
|
||||
check scripts/generate_driver_wrappers.py $library_dir/psa_crypto_driver_wrappers.h $library_dir/psa_crypto_driver_wrappers_no_static.c
|
||||
|
||||
# Additional checks for Mbed TLS only
|
||||
|
@ -99,9 +99,9 @@ def main() -> None:
|
||||
args = argparser.parse_args()
|
||||
|
||||
output_file = args.output
|
||||
# Remove output file if already existing.
|
||||
# If the output file already exists, then we can quit (successfully)
|
||||
if os.path.exists(output_file):
|
||||
os.remove(output_file)
|
||||
return
|
||||
|
||||
output_file = open(output_file, 'at')
|
||||
output_file.write(
|
||||
|
Reference in New Issue
Block a user