diff options
author | Cole Robinson <crobinso@redhat.com> | 2022-08-01 10:38:01 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2022-08-01 10:38:01 -0400 |
commit | 58ffe7fa7ad2582a41a59d1b919f514505005e6a (patch) | |
tree | 55f95dc94143015e5b2aeb6a7a98051da4442fe6 /tests | |
parent | b8a77805b0606191c368f8aaf8254f2569b7278a (diff) | |
download | virt-manager-58ffe7fa7ad2582a41a59d1b919f514505005e6a.tar.gz |
tests: uitests: livetests: Fix LXC domain cleanup
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/uitests/test_livetests.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/uitests/test_livetests.py b/tests/uitests/test_livetests.py index 7ac2ee48..3ac0133b 100644 --- a/tests/uitests/test_livetests.py +++ b/tests/uitests/test_livetests.py @@ -38,7 +38,10 @@ def _vm_wrapper(vmname, uri="qemu:///system", opts=None): except Exception: pass try: - dom.undefineFlags(libvirt.VIR_DOMAIN_UNDEFINE_NVRAM) + flags = 0 + if "qemu" in uri: + flags = libvirt.VIR_DOMAIN_UNDEFINE_NVRAM + dom.undefineFlags(flags) dom.destroy() except Exception: pass |