diff options
author | Yi Fan Yu <yifan.yu@windriver.com> | 2021-01-21 17:36:39 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-02-05 23:37:03 +0000 |
commit | c604b510f4050f1434797bec860a9bd30c74a66e (patch) | |
tree | 157f6506af9d368ccd166dc51e6db31143b4cafd /meta/lib/oeqa/selftest/cases | |
parent | f456ab90957ccaaa2385d11f0814626f6ebd0830 (diff) | |
download | poky-c604b510f4050f1434797bec860a9bd30c74a66e.tar.gz |
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: cbc72203c82e56ebf4a6a685fbeb27679ed9a2e0)
Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit be02aa9283f805de718badd5ea12c4968da8774f)
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.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/tinfoil.py b/meta/lib/oeqa/selftest/cases/tinfoil.py index 206168ed00..a51c6048d3 100644 --- a/meta/lib/oeqa/selftest/cases/tinfoil.py +++ b/meta/lib/oeqa/selftest/cases/tinfoil.py | |||
@@ -100,9 +100,11 @@ class TinfoilTests(OESelftestTestCase): | |||
100 | eventreceived = False | 100 | eventreceived = False |
101 | commandcomplete = False | 101 | commandcomplete = False |
102 | start = time.time() | 102 | start = time.time() |
103 | # Wait for 10s in total so we'd detect spurious heartbeat events for example | 103 | # Wait for maximum 60s in total so we'd detect spurious heartbeat events for example |
104 | # The test is IO load sensitive too | 104 | # The test is IO load sensitive too |
105 | while time.time() - start < 10: | 105 | while (not (eventreceived == True and commandcomplete == True) |
106 | and (time.time() - start < 60)): | ||
107 | # if we received both events (on let's say a good day), we are done | ||
106 | event = tinfoil.wait_event(1) | 108 | event = tinfoil.wait_event(1) |
107 | if event: | 109 | if event: |
108 | if isinstance(event, bb.command.CommandCompleted): | 110 | if isinstance(event, bb.command.CommandCompleted): |