提交 b6cc8814 编写于 作者: L Lukáš Doktor

cpuflags: Improve the Test_temp cleanup

Let's clean both "vm" and "clone" if they exists to avoid complex
modifications required to switch from "vm" to "clone".
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 955ad1c3
......@@ -510,9 +510,12 @@ def run(test, params, env):
def clean(self):
logging.info("cleanup")
if (hasattr(self, "vm")):
vm = getattr(self, "vm")
vm = getattr(self, "vm", None)
if vm:
vm.destroy(gracefully=False)
clone = getattr(self, "clone", None)
if clone:
clone.destroy(gracefully=False)
# 1) <qemu-kvm-cmd> -cpu ?model
class test_qemu_cpu_model(MiniSubtest):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册