[Spice-devel] [spice v1 5/8] tests: migrate: style, break line of qmp's command
Victor Toso
victortoso at redhat.com
Mon Oct 7 12:19:32 UTC 2019
From: Victor Toso <me at victortoso.com>
Preparatory patch for adding support to change hostname.
Signed-off-by: Victor Toso <victortoso at redhat.com>
---
tests/migrate.py | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/tests/migrate.py b/tests/migrate.py
index 3ae9e053..742c9fab 100755
--- a/tests/migrate.py
+++ b/tests/migrate.py
@@ -199,9 +199,14 @@ class Migrator(object):
if self.connected_client or wait_user_connect:
wait_for_event(self.active.qmp, 'SPICE_INITIALIZED')
- self.active.qmp.cmd('client_migrate_info', {'protocol':'spice',
- 'hostname':'localhost', 'port':self.target.spice_port})
- self.active.qmp.cmd('migrate', {'uri': 'tcp:localhost:%s' % self.migration_port})
+ self.active.qmp.cmd('client_migrate_info', {
+ 'protocol' : 'spice',
+ 'hostname' : 'localhost',
+ 'port' : self.target.spice_port
+ })
+ self.active.qmp.cmd('migrate', {
+ 'uri': 'tcp:localhost:%s' % self.migration_port
+ })
wait_active(self.active.qmp, False)
wait_active(self.target.qmp, True)
--
2.21.0
More information about the Spice-devel
mailing list