]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
oeqa/selftest/tinfoil: Fix intermittent event loss issue in test
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Mar 2022 17:37:25 +0000 (17:37 +0000)
committerSteve Sakoman <steve@sakoman.com>
Sun, 27 Mar 2022 02:25:24 +0000 (16:25 -1000)
commitda5cba5ec56cc437ede46d8aa71219a2a34cbe9e
treee47a4cbf9676d78c5e128e4d3cceb0389f37638c
parent619d9ba2bb1f869869937f7d7942cc77580fdc08
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]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 2292983c717b8cadcf0c443bb7b649a84ea5ad57)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oeqa/selftest/cases/tinfoil.py