[v1,5/8] tests: migrate: style, break line of qmp's command

Submitted by Victor Toso on Oct. 7, 2019, 12:19 p.m.

Details

Message ID 20191007121935.22567-5-victortoso@redhat.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Spice

Not browsing as part of any series.

Commit Message

Victor Toso Oct. 7, 2019, 12:19 p.m.
From: Victor Toso <me@victortoso.com>

Preparatory patch for adding support to change hostname.

Signed-off-by: Victor Toso <victortoso@redhat.com>
---
 tests/migrate.py | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

Patch hide | download patch | download mbox

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)