diff mbox

[Autotest,1/4] virt: Adds support for cancel migration in multi-host tests.

Message ID 1351703968-27007-2-git-send-email-jzupka@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jiri Zupka Oct. 31, 2012, 5:19 p.m. UTC
1) Start migration with stressed VM.
2) Wait cancel_delay and then cancel migration.
3) Check if machine is alive on source host.
4) Stop stress of VM.
5) Migrate machine again.
6) Check if machine is alive on destination host.

Signed-off-by: Ji?í Župka <jzupka@redhat.com>
---
 virttest/utils_test.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/virttest/utils_test.py b/virttest/utils_test.py
index 13225d0..eda2099 100644
--- a/virttest/utils_test.py
+++ b/virttest/utils_test.py
@@ -759,7 +759,7 @@  class MultihostMigration(object):
                     mig_error = True
                     raise
             finally:
-                if not mig_error:
+                if not mig_error and cancel_delay is None:
                     self._hosts_barrier(self.hosts,
                                         mig_data.mig_id,
                                         'test_finihed',