uitests: Add some virtManager coverage exclusions

This commit is contained in:
Cole Robinson 2024-08-06 11:55:46 -04:00
parent 1194f09968
commit 8eb37c0e50
2 changed files with 2 additions and 2 deletions

View File

@ -653,7 +653,7 @@ class vmmConnection(vmmGObject):
# This event is triggered when deleting external snapshots and it changes
# shutoff VM into paused and makes that VM unusable until virt-manager is
# restarted so we need to ignore it in case VM is shutoff.
if obj.is_shutoff():
if obj.is_shutoff(): # pragma: no cover
log.debug("received agent lifecycle event but domain is shutoff, ignoring it")
return

View File

@ -410,7 +410,7 @@ class vmmHostStorage(vmmGObjectUI):
for vol in vols:
try:
paths.append(vol.get_target_path())
except Exception:
except Exception: # pragma: no cover
log.debug("Error getting target path for '%s'", vol, exc_info=True)
paths.append(None)
names_list = DeviceDisk.paths_in_use_by(pool.conn.get_backend(), paths)