fix(tf-coverity): fix regex used to extract the file names
Coverity script throw below error even though clk-stm32-core.c
got covered for analysis.
1 files were not analyzed:
- drivers/st/clk/clk-stm32-core.c
To fix this issue updated regex used to extract the file names of
the analyzed files.
Change-Id: I3a1f1b336cd85585ece27e64ae44e1b82664afdf
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
diff --git a/script/tf-coverity/run_coverity_on_tf.py b/script/tf-coverity/run_coverity_on_tf.py
index 0f1e45b..ad49bfa 100755
--- a/script/tf-coverity/run_coverity_on_tf.py
+++ b/script/tf-coverity/run_coverity_on_tf.py
@@ -80,7 +80,7 @@
with open(coverity_build_log, encoding="utf-8") as build_log:
for line in build_log:
line = re.sub('//','/', line)
- results = re.search("(?:COMPILING|EXECUTING):.*-c *(.*\.c).*-o.*\.o", line)
+ results = re.search("(?:COMPILING|EXECUTING):.*-c *(.*\.c).*-o.*\.o", line)
if results is not None:
filename = results.group(1)
if filename not in analyzed: