diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-10-22 13:33:48 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-10-24 11:24:03 +0100 |
commit | 7fef43d98a20cc8267adad55c46fb96f6bb026d7 (patch) | |
tree | 45872ef3f84471e5a4d342efc586e2536cc14929 /bitbake/lib | |
parent | 524bbe060e9db2b62f4a18eda9bc4d820c427386 (diff) | |
download | poky-7fef43d98a20cc8267adad55c46fb96f6bb026d7.tar.gz |
bitbake: toaster/tests/functional/util: Avoid test hangs
If the element never exists, the timeout is never incremented and the test
hangs indefinitely. Fix the exception handling to avoid that and allow
the timeout to happen.
(Bitbake rev: 9eabe923d457bbce65227da4cd71c275c32108e6)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/toaster/tests/functional/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/tests/functional/utils.py b/bitbake/lib/toaster/tests/functional/utils.py index 8e81c29984..d8394708e8 100644 --- a/bitbake/lib/toaster/tests/functional/utils.py +++ b/bitbake/lib/toaster/tests/functional/utils.py | |||
@@ -36,7 +36,7 @@ def wait_until_build(test_instance, state): | |||
36 | if 'failed' in str(build_state).lower(): | 36 | if 'failed' in str(build_state).lower(): |
37 | break | 37 | break |
38 | except NoSuchElementException: | 38 | except NoSuchElementException: |
39 | continue | 39 | pass |
40 | except TimeoutException: | 40 | except TimeoutException: |
41 | break | 41 | break |
42 | start_time += 1 | 42 | start_time += 1 |