summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/toaster/tests/functional/utils.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/bitbake/lib/toaster/tests/functional/utils.py b/bitbake/lib/toaster/tests/functional/utils.py
index d8394708e8..72345aef9f 100644
--- a/bitbake/lib/toaster/tests/functional/utils.py
+++ b/bitbake/lib/toaster/tests/functional/utils.py
@@ -8,7 +8,7 @@
8 8
9 9
10from time import sleep 10from time import sleep
11from selenium.common.exceptions import NoSuchElementException, StaleElementReferenceException, TimeoutException 11from selenium.common.exceptions import NoSuchElementException, StaleElementReferenceException, TimeoutException, WebDriverException
12from selenium.webdriver.common.by import By 12from selenium.webdriver.common.by import By
13 13
14from orm.models import Build 14from orm.models import Build
@@ -66,12 +66,14 @@ def wait_until_build_cancelled(test_instance):
66 pass 66 pass
67 if 'cancelled' in str(build_state).lower(): 67 if 'cancelled' in str(build_state).lower():
68 break 68 break
69 except NoSuchElementException:
70 continue
71 except StaleElementReferenceException:
72 continue
73 except TimeoutException: 69 except TimeoutException:
74 break 70 break
71 except NoSuchElementException:
72 pass
73 except StaleElementReferenceException:
74 pass
75 except WebDriverException:
76 pass
75 start_time += 1 77 start_time += 1
76 sleep(1) # take a breath and try again 78 sleep(1) # take a breath and try again
77 79