From 91fd68dbbfdfdbd601a2c98ff9826b3d900eddcc Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Fri, 8 May 2020 07:22:58 -0400 Subject: [PATCH] sanitycheck: also look for cpp files when scanning look for *.c* instead of just *.c files when scanning or testcases. Signed-off-by: Anas Nashif --- scripts/sanity_chk/sanitylib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sanity_chk/sanitylib.py b/scripts/sanity_chk/sanitylib.py index 48bc7966ca2..88ad8791608 100644 --- a/scripts/sanity_chk/sanitylib.py +++ b/scripts/sanity_chk/sanitylib.py @@ -1411,7 +1411,7 @@ Tests should reference the category and subsystem with a dot as a separator. def scan_path(self, path): subcases = [] - for filename in glob.glob(os.path.join(path, "src", "*.c")): + for filename in glob.glob(os.path.join(path, "src", "*.c*")): try: _subcases, warnings = self.scan_file(filename) if warnings: