diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-05 14:17:58 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-16 08:19:34 +0000 |
commit | e1e38c9bd16220f78068299cd90692d96d045bf9 (patch) | |
tree | 61ea2bf816f730d2d48545facdce89b020e06131 /meta/lib/oeqa/selftest/cases/bbtests.py | |
parent | 8d2dd4a30034559838e2433ad58aeffccaf40555 (diff) | |
download | poky-e1e38c9bd16220f78068299cd90692d96d045bf9.tar.gz |
lib/oe,oeqa/selftest: Fix DeprecationWarning: invalid escape sequence
Fix another load of regex escape sequence warnings for newer
python versions.
(From OE-Core rev: bd2c125bb9c362b6122e99dfdf4e1cfe12c26a90)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/bbtests.py')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/bbtests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oeqa/selftest/cases/bbtests.py b/meta/lib/oeqa/selftest/cases/bbtests.py index 005fdd0964..c503e4eedd 100644 --- a/meta/lib/oeqa/selftest/cases/bbtests.py +++ b/meta/lib/oeqa/selftest/cases/bbtests.py | |||
@@ -40,8 +40,8 @@ class BitbakeTests(OESelftestTestCase): | |||
40 | def test_event_handler(self): | 40 | def test_event_handler(self): |
41 | self.write_config("INHERIT += \"test_events\"") | 41 | self.write_config("INHERIT += \"test_events\"") |
42 | result = bitbake('m4-native') | 42 | result = bitbake('m4-native') |
43 | find_build_started = re.search("NOTE: Test for bb\.event\.BuildStarted(\n.*)*NOTE: Executing RunQueue Tasks", result.output) | 43 | find_build_started = re.search(r"NOTE: Test for bb\.event\.BuildStarted(\n.*)*NOTE: Executing RunQueue Tasks", result.output) |
44 | find_build_completed = re.search("Tasks Summary:.*(\n.*)*NOTE: Test for bb\.event\.BuildCompleted", result.output) | 44 | find_build_completed = re.search(r"Tasks Summary:.*(\n.*)*NOTE: Test for bb\.event\.BuildCompleted", result.output) |
45 | self.assertTrue(find_build_started, msg = "Match failed in:\n%s" % result.output) | 45 | self.assertTrue(find_build_started, msg = "Match failed in:\n%s" % result.output) |
46 | self.assertTrue(find_build_completed, msg = "Match failed in:\n%s" % result.output) | 46 | self.assertTrue(find_build_completed, msg = "Match failed in:\n%s" % result.output) |
47 | self.assertFalse('Test for bb.event.InvalidEvent' in result.output, msg = "\"Test for bb.event.InvalidEvent\" message found during bitbake process. bitbake output: %s" % result.output) | 47 | self.assertFalse('Test for bb.event.InvalidEvent' in result.output, msg = "\"Test for bb.event.InvalidEvent\" message found during bitbake process. bitbake output: %s" % result.output) |
@@ -196,7 +196,7 @@ SSTATE_DIR = \"${TOPDIR}/download-selftest\" | |||
196 | @OETestID(1031) | 196 | @OETestID(1031) |
197 | def test_version(self): | 197 | def test_version(self): |
198 | result = runCmd('bitbake -s | grep wget') | 198 | result = runCmd('bitbake -s | grep wget') |
199 | find = re.search("wget *:([0-9a-zA-Z\.\-]+)", result.output) | 199 | find = re.search(r"wget *:([0-9a-zA-Z\.\-]+)", result.output) |
200 | self.assertTrue(find, "No version returned for searched recipe. bitbake output: %s" % result.output) | 200 | self.assertTrue(find, "No version returned for searched recipe. bitbake output: %s" % result.output) |
201 | 201 | ||
202 | @OETestID(1032) | 202 | @OETestID(1032) |