From: Lennart Poettering Date: Tue, 2 May 2023 09:22:22 +0000 (+0200) Subject: generate-sym-test: only look in .c and .h files X-Git-Tag: v254-rc1~575^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F27493%2Fhead;p=thirdparty%2Fsystemd.git generate-sym-test: only look in .c and .h files Otherwise it might find backup files and such, which triggered all kinds of false positives (at least on my devel machine). --- diff --git a/src/test/generate-sym-test.py b/src/test/generate-sym-test.py index 0d220d9a283..54e3c5fa105 100755 --- a/src/test/generate-sym-test.py +++ b/src/test/generate-sym-test.py @@ -67,6 +67,8 @@ print(''' {} for dirpath, _, filenames in os.walk(sys.argv[2]): for filename in filenames: + if not filename.endswith(".c") and not filename.endswith(".h"): + continue with open(os.path.join(dirpath, filename), "r") as f: process_source_file(f)