mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-26 11:37:09 +00:00
Fix sensitivity of tls13-compat.sh to the exact generation method
Fix `tls13-compat.sh` changing based on exactly how `generate_tls13_compat_tests.py` was run (e.g. from which directory). This made `check-generated-files.sh` behave differently from `make`. The script has no official variations of the content of its output file, so we don't need to record the full command line. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
0e9ba089b9
commit
4daaafebe0
@ -526,11 +526,8 @@ def generate_hrr_compat_test(client=None, server=None,
|
|||||||
|
|
||||||
SSL_OUTPUT_HEADER = '''\
|
SSL_OUTPUT_HEADER = '''\
|
||||||
# TLS 1.3 interoperability test cases (equivalent of compat.sh for TLS 1.3).
|
# TLS 1.3 interoperability test cases (equivalent of compat.sh for TLS 1.3).
|
||||||
# They are generated by
|
|
||||||
# `{cmd}`.
|
|
||||||
#
|
#
|
||||||
# PLEASE DO NOT EDIT THIS FILE. IF NEEDED, PLEASE MODIFY `generate_tls13_compat_tests.py`
|
# Automatically generated by {cmd}. Do not edit!
|
||||||
# AND REGENERATE THIS FILE.
|
|
||||||
|
|
||||||
# Copyright The Mbed TLS Contributors
|
# Copyright The Mbed TLS Contributors
|
||||||
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||||
@ -621,7 +618,8 @@ def main():
|
|||||||
if args.output:
|
if args.output:
|
||||||
with open(args.output, 'w', encoding="utf-8") as f:
|
with open(args.output, 'w', encoding="utf-8") as f:
|
||||||
f.write(SSL_OUTPUT_HEADER.format(
|
f.write(SSL_OUTPUT_HEADER.format(
|
||||||
filename=os.path.basename(args.output), cmd=' '.join(sys.argv)))
|
filename=os.path.basename(args.output),
|
||||||
|
cmd=os.path.basename(sys.argv[0])))
|
||||||
f.write(DATA_FILES_PATH_VAR)
|
f.write(DATA_FILES_PATH_VAR)
|
||||||
f.write('\n\n'.join(get_all_test_cases()))
|
f.write('\n\n'.join(get_all_test_cases()))
|
||||||
f.write('\n')
|
f.write('\n')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user