No build reason found for pool-leap-15.3:i586

File 040-uitests-Make-hotplug-test-pass-on-both-f37-and-f38.patch of Package virt-manager

Subject: uitests: Make hotplug test pass on both f37 and f38
From: Cole Robinson crobinso@redhat.com Sat May 6 13:13:22 2023 -0400
Date: Sat May 6 19:43:24 2023 -0400:
Git: 75422ec75efe254beb8dc85f75715d71fa3ec859

Signed-off-by: Cole Robinson <crobinso@redhat.com>

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)
openSUSE Build Service is sponsored by