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

cpuflags: Don't swap the clone to vm in cpuflags test

This swap is not necessary and makes it less clear whether we act on vm
or clone. Let's be more explicit and rely on "cleanup" to shutdown both.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 b6cc8814
...@@ -856,15 +856,10 @@ def run(test, params, env): ...@@ -856,15 +856,10 @@ def run(test, params, env):
self.vm.monitor.migrate_set_downtime(1) self.vm.monitor.migrate_set_downtime(1)
self.vm.wait_for_migration(mig_timeout) self.vm.wait_for_migration(mig_timeout)
# Swap due to test cleaning. self.clone.resume()
temp = self.vm.clone(copy_state=True) self.vm.destroy(gracefully=False)
self.vm.__dict__ = self.clone.__dict__
self.clone = temp
self.vm.resume()
self.clone.destroy(gracefully=False)
stress_session = self.vm.wait_for_login() stress_session = self.clone.wait_for_login()
# If cpuflags-test hang up during migration test raise exception # If cpuflags-test hang up during migration test raise exception
try: try:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册