public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: Steve Sakoman <steve@sakoman.com>
To: openembedded-core@lists.openembedded.org
Subject: [OE-core][dunfell 10/10] oeqa/selftest/tinfoil: Fix intermittent event loss issue in test
Date: Sun, 27 Mar 2022 06:41:00 -1000	[thread overview]
Message-ID: <da5cba5ec56cc437ede46d8aa71219a2a34cbe9e.1648399113.git.steve@sakoman.com> (raw)
In-Reply-To: <cover.1648399113.git.steve@sakoman.com>

From: Richard Purdie <richard.purdie@linuxfoundation.org>

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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):
                 pass
 
             pattern = 'conf'
-            res = tinfoil.run_command('testCookerCommandEvent', pattern)
+            res = tinfoil.run_command('testCookerCommandEvent', pattern, handle_events=False)
             self.assertTrue(res)
 
             eventreceived = False
-- 
2.25.1



      parent reply	other threads:[~2022-03-27 16:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-27 16:40 [OE-core][dunfell 00/10] Patch review Steve Sakoman
2022-03-27 16:40 ` [OE-core][dunfell 01/10] libsolv: fix CVE: CVE-2021-44568-71 and CVE-2021-44573-77 Steve Sakoman
2022-03-27 16:40 ` [OE-core][dunfell 02/10] python3: ignore CVE-2022-26488 Steve Sakoman
2022-03-27 16:40 ` [OE-core][dunfell 03/10] qemu: backport patch fix for CVE-2020-13791 Steve Sakoman
2022-03-27 16:40 ` [OE-core][dunfell 04/10] apt: backport patch fix for CVE-2020-3810 Steve Sakoman
2022-03-27 16:40 ` [OE-core][dunfell 05/10] ghostscript: fix CVE-2020-15900 and CVE-2021-45949 for -native Steve Sakoman
2022-03-27 16:40 ` [OE-core][dunfell 06/10] ghostscript: backport patch fix for CVE-2021-3781 Steve Sakoman
2022-03-27 16:40 ` [OE-core][dunfell 07/10] libxml2: fix CVE-2022-23308 regression Steve Sakoman
2022-03-27 16:40 ` [OE-core][dunfell 08/10] gnu-config: update SRC_URI Steve Sakoman
2022-03-27 16:40 ` [OE-core][dunfell 09/10] virglrenderer: " Steve Sakoman
2022-03-27 16:41 ` Steve Sakoman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=da5cba5ec56cc437ede46d8aa71219a2a34cbe9e.1648399113.git.steve@sakoman.com \
    --to=steve@sakoman.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox