mirror of
git://git.yoctoproject.org/poky
synced 2026-08-12 12:58:43 +00:00
oeqa/selftest/cases/tinfoil.py: increase timeout 10->60s test_wait_event
The test would timeout on autobuilders. This patch increases the timeout to 60s The test will now also exit as soon as we receive the 2 expected events Expected runtime is around 1s if successful Bug 14158 (From OE-Core rev: be02aa9283f805de718badd5ea12c4968da8774f) (From OE-Core rev: c925b83cbd31345f788515ca8b642b14e5e11898) Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 1d803b70e599521ad0c743f49007e6fc5c055d1c) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
c35cb3135e
commit
558a9149e0
@ -100,9 +100,11 @@ class TinfoilTests(OESelftestTestCase):
|
||||
eventreceived = False
|
||||
commandcomplete = False
|
||||
start = time.time()
|
||||
# Wait for 10s in total so we'd detect spurious heartbeat events for example
|
||||
# Wait for maximum 60s in total so we'd detect spurious heartbeat events for example
|
||||
# The test is IO load sensitive too
|
||||
while time.time() - start < 10:
|
||||
while (not (eventreceived == True and commandcomplete == True)
|
||||
and (time.time() - start < 60)):
|
||||
# if we received both events (on let's say a good day), we are done
|
||||
event = tinfoil.wait_event(1)
|
||||
if event:
|
||||
if isinstance(event, bb.command.CommandCompleted):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user