Meson dependencies pattern should pick list items.
The patten "dependency\('([^']*)'.*?\)\n" fails to match dependencies declared in a list, for example,
some_deps = [
dependency('lib1'),
dependency('lib2'),
]
Changed it to "dependency\('([^']*)'.*?\),?\n".
Signed-off-by: Nan Zhou <nanzhoumails@gmail.com>
Change-Id: If5f9c8c24a5db881625d499181ac474758fc2544
diff --git a/scripts/unit-test.py b/scripts/unit-test.py
index bf848e4..3d12fe5 100755
--- a/scripts/unit-test.py
+++ b/scripts/unit-test.py
@@ -755,7 +755,7 @@
continue
with open(os.path.join(root, 'meson.build'), 'rt') as f:
build_contents = f.read()
- pattern = r"dependency\('([^']*)'.*?\)\n"
+ pattern = r"dependency\('([^']*)'.*?\),?\n"
for match in re.finditer(pattern, build_contents):
group = match.group(1)
maybe_dep = DEPENDENCIES['PKG_CHECK_MODULES'].get(group)