From fa379614132c3b74e3fca60b4cb1c60fcc70a17b Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Tue, 12 Jan 2021 21:14:46 +0100 Subject: [PATCH] Rename OMITTED_SYSTEMATIC_DEPENDENCIES It isn't a set of dependencies, it's a set of symbols. So give it a name that describes the symbol rather than a name that pretends it's a collection of dependencies. Signed-off-by: Gilles Peskine --- tests/scripts/set_psa_test_dependencies.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scripts/set_psa_test_dependencies.py b/tests/scripts/set_psa_test_dependencies.py index ec103877f1..7510a0d8dd 100755 --- a/tests/scripts/set_psa_test_dependencies.py +++ b/tests/scripts/set_psa_test_dependencies.py @@ -107,7 +107,7 @@ def is_systematic_dependency(dep): """Whether dep is a PSA dependency which is determined systematically.""" return dep.startswith('PSA_WANT_') -OMITTED_SYSTEMATIC_DEPENDENCIES = frozenset([ +WITHOUT_SYSTEMATIC_DEPENDENCIES = frozenset([ 'PSA_ALG_AEAD_WITH_TAG_LENGTH', # only a modifier 'PSA_ALG_ANY_HASH', # only meaningful in policies 'PSA_ALG_KEY_AGREEMENT', # only a way to combine algorithms @@ -145,7 +145,7 @@ SPECIAL_SYSTEMATIC_DEPENDENCIES = { def dependencies_of_symbol(symbol): """Return the dependencies for a symbol that designates a cryptographic mechanism.""" - if symbol in OMITTED_SYSTEMATIC_DEPENDENCIES: + if symbol in WITHOUT_SYSTEMATIC_DEPENDENCIES: return frozenset() if symbol in SPECIAL_SYSTEMATIC_DEPENDENCIES: return SPECIAL_SYSTEMATIC_DEPENDENCIES[symbol]