summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2023-05-06 13:13:22 -0400
committerCole Robinson <crobinso@redhat.com>2023-05-06 19:43:24 -0400
commit75422ec75efe254beb8dc85f75715d71fa3ec859 (patch)
tree182c6bcab7ded7f0f514d4fc9eccb54fa5e8b060
parenta9cf4945b1dcd45fb205c4adc6f555f2fc47ecfa (diff)
downloadvirt-manager-75422ec75efe254beb8dc85f75715d71fa3ec859.tar.gz
uitests: Make hotplug test pass on both f37 and f38
Signed-off-by: Cole Robinson <crobinso@redhat.com>
-rw-r--r--tests/uitests/test_livetests.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/uitests/test_livetests.py b/tests/uitests/test_livetests.py
index 72a96a10..55c9066b 100644
--- a/tests/uitests/test_livetests.py
+++ b/tests/uitests/test_livetests.py
@@ -471,11 +471,15 @@ def _testLiveHotplug(app, fname):
lib.utils.check(lambda: tab.showing)
entry.set_text(fname)
appl.click()
- # F38 CDROM change is broken:
- # https://gitlab.com/qemu-project/qemu/-/issues/933
# pylint: disable=unreachable
- app.click_alert_button("changes will take effect", "OK")
- return
+ import dogtail.tree
+ try:
+ # F38 CDROM change is broken:
+ # https://gitlab.com/qemu-project/qemu/-/issues/933
+ app.click_alert_button("changes will take effect", "OK")
+ return
+ except dogtail.tree.SearchError:
+ pass
lib.utils.check(lambda: not appl.sensitive)
lib.utils.check(lambda: entry.text == fname)