summaryrefslogtreecommitdiff
path: root/virtManager/object
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2020-09-02 11:22:02 -0400
committerCole Robinson <crobinso@redhat.com>2020-09-02 12:59:25 -0400
commit29f866e6f35bab64e8bfb2e275a3a87b8ade5ae4 (patch)
tree71a82b60b780c38c075e01b20a1f263d13ce5b6c /virtManager/object
parenta10d746c419b71d7621de765eeeee48235c61c08 (diff)
downloadvirt-manager-29f866e6f35bab64e8bfb2e275a3a87b8ade5ae4.tar.gz
uitests: add connection object blacklist testing
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'virtManager/object')
-rw-r--r--virtManager/object/libvirtobject.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/virtManager/object/libvirtobject.py b/virtManager/object/libvirtobject.py
index 0dfe68b3..0c35dd4e 100644
--- a/virtManager/object/libvirtobject.py
+++ b/virtManager/object/libvirtobject.py
@@ -174,6 +174,9 @@ class vmmLibvirtObject(vmmGObject):
initialize_failed = False
try:
+ if self.config.CLITestOptions.object_blacklist == self._name:
+ raise RuntimeError("fake initialization error")
+
self._init_libvirt_state()
except Exception: # pragma: no cover
log.debug("Error initializing libvirt state for %s", self,