mirror of
https://git.yoctoproject.org/poky
synced 2026-04-09 02:02:26 +02:00
oeqa/selftest/tinfoil: Fix intermittent event loss issue in test
We've been seeing occasional test failures on the autobuilder where we don't see the expected events. It turns out this is due to run_command being helpful and eating them if the server is fast and the client slow. Adding a sleep into the run_command code makes the failure consistent. Use a new "handle_events" argument to allow us to handle all the events which is what this test requires. [YOCTO #14585] (From OE-Core rev: 2292983c717b8cadcf0c443bb7b649a84ea5ad57) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -94,7 +94,7 @@ class TinfoilTests(OESelftestTestCase):
|
||||
pass
|
||||
|
||||
pattern = 'conf'
|
||||
res = tinfoil.run_command('testCookerCommandEvent', pattern)
|
||||
res = tinfoil.run_command('testCookerCommandEvent', pattern, handle_events=False)
|
||||
self.assertTrue(res)
|
||||
|
||||
eventreceived = False
|
||||
|
||||
Reference in New Issue
Block a user