From 7fef43d98a20cc8267adad55c46fb96f6bb026d7 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 22 Oct 2024 13:33:48 +0100 Subject: 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 --- bitbake/lib/toaster/tests/functional/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib') 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): if 'failed' in str(build_state).lower(): break except NoSuchElementException: - continue + pass except TimeoutException: break start_time += 1 -- cgit v1.2.3-54-g00ecf