mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-09-30 22:07:23 +00:00
Improve tests/scripts/depends.py code
As suggested by gilles-peskine-arm. Co-authored-by: Gilles Peskine <[email protected]> Signed-off-by: Andrzej Kurek <[email protected]>
This commit is contained in:
co-authored by
Gilles Peskine
parent
81cf5ad347
commit
72082dc28e
@@ -151,13 +151,12 @@ which will make a symbol defined with a certain value."""
|
|||||||
if value is False:
|
if value is False:
|
||||||
log_command(['config.py', 'unset', option])
|
log_command(['config.py', 'unset', option])
|
||||||
conf.unset(option)
|
conf.unset(option)
|
||||||
|
elif value is True:
|
||||||
|
log_command(['config.py', 'set', option])
|
||||||
|
conf.set(option)
|
||||||
else:
|
else:
|
||||||
if value is True:
|
log_command(['config.py', 'set', option, value])
|
||||||
log_command(['config.py', 'set', option])
|
conf.set(option, value)
|
||||||
conf.set(option)
|
|
||||||
else:
|
|
||||||
log_command(['config.py', 'set', option, value])
|
|
||||||
conf.set(option, value)
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def set_reference_config(conf, options, colors):
|
def set_reference_config(conf, options, colors):
|
||||||
|
|||||||
Reference in New Issue
Block a user