aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/262
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qemu-iotests/262')
-rwxr-xr-xtests/qemu-iotests/26212
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/qemu-iotests/262 b/tests/qemu-iotests/262
index 398f63587e..0963daa806 100755
--- a/tests/qemu-iotests/262
+++ b/tests/qemu-iotests/262
@@ -54,12 +54,6 @@ with iotests.FilePath('img') as img_path, \
os.mkfifo(fifo)
- iotests.log('Launching source VM...')
- add_opts(vm_a)
- vm_a.launch()
-
- vm_a.enable_migration_events('A')
-
iotests.log('Launching destination VM...')
add_opts(vm_b)
vm_b.add_incoming("exec: cat '%s'" % (fifo))
@@ -67,6 +61,12 @@ with iotests.FilePath('img') as img_path, \
vm_b.enable_migration_events('B')
+ iotests.log('Launching source VM...')
+ add_opts(vm_a)
+ vm_a.launch()
+
+ vm_a.enable_migration_events('A')
+
iotests.log('Starting migration to B...')
iotests.log(vm_a.qmp('migrate', uri='exec:cat >%s' % (fifo)))
with iotests.Timeout(3, 'Migration does not complete'):