From 0d15fc57d5ae3f6f4beb87929f8aa258091d1eb9 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 13 Dec 2023 10:19:01 +0800 Subject: [PATCH] scripts/coverage.py: correct the formatted string in error message the formatted string should be `basename`. `input_file` is not defined in that context. Signed-off-by: Kefu Chai --- scripts/coverage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/coverage.py b/scripts/coverage.py index ce075e8450..77c93e5b78 100755 --- a/scripts/coverage.py +++ b/scripts/coverage.py @@ -119,7 +119,7 @@ def generate_coverage_report(path="build/coverage/test", name="tests", input_fil dirname, basename = os.path.split(file) match = re.fullmatch(input_file_re, basename) if match is None: - print(f"Error: input file {input_file} doesn't match the expected input file naming pattern {input_file_re_str}, skipping it") + print(f"Error: input file {basename} doesn't match the expected input file naming pattern {input_file_re_str}, skipping it") test_executables.append(os.path.join(dirname, match.group(1))) else: