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>
This commit is contained in:
Richard Purdie
2024-10-22 13:33:48 +01:00
parent 524bbe060e
commit 7fef43d98a

View File

@@ -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