unit-test: Remove newline for dependency checks

After formatting with meson formatter, the dependency is not always in
a new line. Removing the newline in the regex to fix the runtime
dependencies.

Change-Id: I3ee9d754fcb60a0e0a9aab2e6e94b91c3b11f240
Signed-off-by: Willy Tu <wltu@google.com>
diff --git a/scripts/unit-test.py b/scripts/unit-test.py
index c8c8687..8f28ee0 100755
--- a/scripts/unit-test.py
+++ b/scripts/unit-test.py
@@ -841,7 +841,7 @@
                 continue
             with open(os.path.join(root, "meson.build"), "rt") as f:
                 build_contents = f.read()
-            pattern = r"dependency\('([^']*)'.*?\),?\n"
+            pattern = r"dependency\('([^']*)'.*?\),?"
             for match in re.finditer(pattern, build_contents):
                 group = match.group(1)
                 maybe_dep = DEPENDENCIES["PKG_CHECK_MODULES"].get(group)