summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2022-08-01 10:38:01 -0400
committerCole Robinson <crobinso@redhat.com>2022-08-01 10:38:01 -0400
commit58ffe7fa7ad2582a41a59d1b919f514505005e6a (patch)
tree55f95dc94143015e5b2aeb6a7a98051da4442fe6 /tests
parentb8a77805b0606191c368f8aaf8254f2569b7278a (diff)
downloadvirt-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.py5
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