KVM test: kvm_preprocessing.py: test for vm.is_alive() instead of vm.is_dead()
vm.is_alive() verifies that the monitor is responsive, which is required for
taking screendumps.
Signed-off-by: Michael Goldish <mgoldish@redhat.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@4658 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/tests/kvm/kvm_preprocessing.py b/client/tests/kvm/kvm_preprocessing.py
index 1ed4ec2..ee279bd 100644
--- a/client/tests/kvm/kvm_preprocessing.py
+++ b/client/tests/kvm/kvm_preprocessing.py
@@ -406,7 +406,7 @@
while True:
for vm in kvm_utils.env_get_all_vms(env):
- if vm.is_dead():
+ if not vm.is_alive():
continue
try:
vm.monitor.screendump(temp_filename)