diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-09 11:19:50 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-09 23:30:44 +0100 |
commit | 2a6094ca8c4aa5c00636df77669e5bca6ad52bcf (patch) | |
tree | 9563569b95bd349476db263a3a869e1597eb6894 /meta/lib/oeqa/selftest/cases | |
parent | 9437010a630b7fefbcf1dea00f3d23ab0e6556b2 (diff) | |
download | poky-2a6094ca8c4aa5c00636df77669e5bca6ad52bcf.tar.gz |
oeqa/bbtests: Tweak test bitbake output pattern matching
The output from bitbake will change slightly soon due to runqueue changes,
adpat the test now to account for both the old and new cases.
(From OE-Core rev: 78fcea74517de4793cc0ecc97bce7f5c7dcd44c0)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/bbtests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/bbtests.py b/meta/lib/oeqa/selftest/cases/bbtests.py index 2a310bc4af..17da0fd32c 100644 --- a/meta/lib/oeqa/selftest/cases/bbtests.py +++ b/meta/lib/oeqa/selftest/cases/bbtests.py | |||
@@ -40,7 +40,7 @@ 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(r"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.*Tasks", result.output) |
44 | find_build_completed = re.search(r"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) |