@@ -35,7 +35,7 @@ class BBLock(OESelftestTestCase):
for recipe in recipes:
for task in tasks:
find_in_contents = re.search(
- 'SIGGEN_LOCKEDSIGS_.+\s\+=\s"%s:%s:.*"' % (recipe, task),
+ r'SIGGEN_LOCKEDSIGS_.+\s\+=\s"%s:%s:.*"' % (recipe, task),
contents,
)
self.assertFalse(
@@ -62,7 +62,7 @@ class BBLock(OESelftestTestCase):
if tasks:
for task in tasks:
find_in_contents = re.search(
- 'SIGGEN_LOCKEDSIGS_.+\s\+=\s"%s:%s:.*"' % (recipe, task),
+ r'SIGGEN_LOCKEDSIGS_.+\s\+=\s"%s:%s:.*"' % (recipe, task),
contents,
)
self.assertTrue(
@@ -55,7 +55,7 @@ class BuildhistoryTests(OESelftestTestCase):
def test_buildhistory_buildtime_pr_backwards(self):
target = 'xcursor-transparent-theme'
- error = "ERROR:.*QA Issue: Package version for package %s went backwards which would break package feeds \(from .*-r1.* to .*-r0.*\)" % target
+ error = r"ERROR:.*QA Issue: Package version for package %s went backwards which would break package feeds \(from .*-r1.* to .*-r0.*\)" % target
self.run_buildhistory_operation(target, target_config="PR = \"r1\"", change_bh_location=True)
self.run_buildhistory_operation(target, target_config="PR = \"r0\"", change_bh_location=False, expect_error=True, error_regex=error)
We need to use raw string literals to avoid misinterpretation of escape sequences. Signed-off-by: Paul Barker <paul@pbarker.dev> --- meta/lib/oeqa/selftest/cases/bblock.py | 4 ++-- meta/lib/oeqa/selftest/cases/buildhistory.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)