qubes/tests: do not undefine libvirt domain twice

Do not access vm.libvirt_domain after it being already removed - this
will redefine it again in libvirt, just to undefine it in a moment.
On the other hand, few lines below there is fallback libvirt cleanup, in
case of proper one not working.
This commit is contained in:
Marek Marczykowski-Górecki 2016-08-09 03:09:29 +02:00
parent 6d45b97357
commit fba6eac07f
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -523,11 +523,6 @@ class SystemTestsMixin(object):
except: # pylint: disable=bare-except
pass
try:
vm.libvirt_domain.undefine()
except (AttributeError, libvirt.libvirtError):
pass
del app.domains[vm.qid]
del vm