From fba6eac07f96188d4a5093f2960684557687dee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 9 Aug 2016 03:09:29 +0200 Subject: [PATCH] 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. --- qubes/tests/__init__.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/qubes/tests/__init__.py b/qubes/tests/__init__.py index 1b2edc84..7eb90532 100644 --- a/qubes/tests/__init__.py +++ b/qubes/tests/__init__.py @@ -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