From 0584df41312ca98fd533a1086bb830495440e68e Mon Sep 17 00:00:00 2001 From: Aditya Deshpande Date: Mon, 16 Jan 2023 16:36:31 +0000 Subject: [PATCH] Minor changes to account for CodeParser.parse_identifiers being used in list_internal_identifiers.py Signed-off-by: Aditya Deshpande --- tests/scripts/check_names.py | 2 +- tests/scripts/list_internal_identifiers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scripts/check_names.py b/tests/scripts/check_names.py index ef676949f..e6a38ba3e 100755 --- a/tests/scripts/check_names.py +++ b/tests/scripts/check_names.py @@ -342,7 +342,7 @@ class CodeParser(): * exc_files: A List of relative filepaths for excluded files. """ accumulator = set() - all_wildcards = include_wildcards + exclude_wildcards + all_wildcards = include_wildcards + (exclude_wildcards or []) for wildcard in all_wildcards: accumulator = accumulator.union(glob.iglob(wildcard)) diff --git a/tests/scripts/list_internal_identifiers.py b/tests/scripts/list_internal_identifiers.py index 779a16ffb..6b41607e3 100755 --- a/tests/scripts/list_internal_identifiers.py +++ b/tests/scripts/list_internal_identifiers.py @@ -46,7 +46,7 @@ def main(): result = name_check.parse_identifiers([ "include/mbedtls/*_internal.h", "library/*.h" - ]) + ])[0] result.sort(key=lambda x: x.name) identifiers = ["{}\n".format(match.name) for match in result]