mirror of
https://git.yoctoproject.org/poky
synced 2026-05-05 20:27:58 +02:00
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>
This commit is contained in:
@@ -40,7 +40,7 @@ class BitbakeTests(OESelftestTestCase):
|
||||
def test_event_handler(self):
|
||||
self.write_config("INHERIT += \"test_events\"")
|
||||
result = bitbake('m4-native')
|
||||
find_build_started = re.search(r"NOTE: Test for bb\.event\.BuildStarted(\n.*)*NOTE: Executing RunQueue Tasks", result.output)
|
||||
find_build_started = re.search(r"NOTE: Test for bb\.event\.BuildStarted(\n.*)*NOTE: Executing.*Tasks", result.output)
|
||||
find_build_completed = re.search(r"Tasks Summary:.*(\n.*)*NOTE: Test for bb\.event\.BuildCompleted", result.output)
|
||||
self.assertTrue(find_build_started, msg = "Match failed in:\n%s" % result.output)
|
||||
self.assertTrue(find_build_completed, msg = "Match failed in:\n%s" % result.output)
|
||||
|
||||
Reference in New Issue
Block a user