mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-09 14:35:45 +00:00
Fix regex matching run_test calls in ssl-opt.sh
No descriptions were processed before due to bugs in the regex. Support \" inside double-quoted strings.
This commit is contained in:
parent
895868bc82
commit
168858f52d
|
@ -92,7 +92,7 @@ def check_ssl_opt_sh(results, file_name):
|
||||||
# Assume that all run_test calls have the same simple form
|
# Assume that all run_test calls have the same simple form
|
||||||
# with the test description entirely on the same line as the
|
# with the test description entirely on the same line as the
|
||||||
# function name.
|
# function name.
|
||||||
m = re.match(r'\s+run_test\s+"([^"])"', line)
|
m = re.match(r'\s*run_test\s+"((?:[^\\"]|\\.)*)"', line)
|
||||||
if not m:
|
if not m:
|
||||||
continue
|
continue
|
||||||
description = m.group(1)
|
description = m.group(1)
|
||||||
|
|
Loading…
Reference in a new issue