summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-24 17:37:25 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-31 21:09:33 +0100
commit631df1296924e86a5170bdd6fe001294fdff6ead (patch)
tree1231faa70b81ae4e1d783efdbcb0f8547e6de1cd /meta/lib/oeqa/selftest/cases
parent5a05390de125e69eaa10f23bf9f7971f7eaf987e (diff)
downloadpoky-631df1296924e86a5170bdd6fe001294fdff6ead.tar.gz
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: da5cba5ec56cc437ede46d8aa71219a2a34cbe9e) 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> 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/tinfoil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/tinfoil.py b/meta/lib/oeqa/selftest/cases/tinfoil.py
index 11cbced5ea..686ce7e6b9 100644
--- a/meta/lib/oeqa/selftest/cases/tinfoil.py
+++ b/meta/lib/oeqa/selftest/cases/tinfoil.py
@@ -94,7 +94,7 @@ class TinfoilTests(OESelftestTestCase):
94 pass 94 pass
95 95
96 pattern = 'conf' 96 pattern = 'conf'
97 res = tinfoil.run_command('testCookerCommandEvent', pattern) 97 res = tinfoil.run_command('testCookerCommandEvent', pattern, handle_events=False)
98 self.assertTrue(res) 98 self.assertTrue(res)
99 99
100 eventreceived = False 100 eventreceived = False