]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/selftest/package: mark string as raw
authorRoss Burton <ross.burton@intel.com>
Wed, 4 Dec 2019 21:58:56 +0000 (21:58 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 28 Dec 2019 14:05:27 +0000 (14:05 +0000)
This regex uses \ so is actually parsed incorrectly, mark it up as a raw
string.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oeqa/selftest/cases/package.py

index 291627877ed54315b540846901a841a6df115d01..b87f8dc3e2cf3a4e92439a3b3cbc2296d11ac019 100644 (file)
@@ -135,7 +135,7 @@ class PackageTests(OESelftestTestCase):
                     return False
 
                 # Check debugging symbols works correctly
-                elif re.match("Breakpoint 1.*hello\.c.*4", l):
+                elif re.match(r"Breakpoint 1.*hello\.c.*4", l):
                     return True
 
             self.logger.error("GDB result:\n%d: %s", status, output)