mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-25 18:35:28 +00:00
If there are no arguments, don't update the file content
This avoids having to bother with edge cases of the .data syntax. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
72d8e0ad04
commit
a87e178553
@ -190,6 +190,10 @@ def updated_dependencies(file_name, function_name, arguments, dependencies):
|
|||||||
def keep_manual_dependencies(file_name, function_name, arguments):
|
def keep_manual_dependencies(file_name, function_name, arguments):
|
||||||
#pylint: disable=unused-argument
|
#pylint: disable=unused-argument
|
||||||
"""Declare test functions with unusual dependencies here."""
|
"""Declare test functions with unusual dependencies here."""
|
||||||
|
# If there are no arguments, we can't do any useful work. Assume that if
|
||||||
|
# there are dependencies, they are warranted.
|
||||||
|
if not arguments:
|
||||||
|
return True
|
||||||
# When PSA_ERROR_NOT_SUPPORTED is expected, usually, at least one of the
|
# When PSA_ERROR_NOT_SUPPORTED is expected, usually, at least one of the
|
||||||
# constants mentioned in the test should not be supported. It isn't
|
# constants mentioned in the test should not be supported. It isn't
|
||||||
# possible to determine which one in a systematic way. So let the programmer
|
# possible to determine which one in a systematic way. So let the programmer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user