This patch adds paused state in vm's preprocess.
Signed-off-by: Yu Mingfei <[email protected]>
---
client/virt/virt_env_process.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/client/virt/virt_env_process.py b/client/virt/virt_env_process.py
index 306be76..0737e3d 100644
--- a/client/virt/virt_env_process.py
+++ b/client/virt/virt_env_process.py
@@ -80,7 +80,7 @@ def preprocess_vm(test, params, env, name):
logging.debug("Param 'migration_mode' specified, starting VM in "
"incoming migration mode")
start_vm = True
- elif params.get("start_vm") == "yes":
+ elif params.get("start_vm") != "no":
# need to deal with libvirt VM differently than qemu
if vm_type == 'libvirt':
if not vm.is_alive():
@@ -104,6 +104,8 @@ def preprocess_vm(test, params, env, name):
vm.create(name, params, test.bindir,
migration_mode=params.get("migration_mode"),
migration_fd=params.get("migration_fd"))
+ if params.get("start_vm") == "paused":
+ vm.pause()
else:
# Don't start the VM, just update its params
vm.params = params
--
1.7.1
--
Best Regards
Yu Mingfei
_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel