[v1,2/8] tests: migrate: migrate count starts with 1

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

Details

Message ID 20191007121935.22567-2-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>

As this is not some index but a counter. The first print happens after
first migration was done, meaning 1 instead of 0

Signed-off-by: Victor Toso <victortoso@redhat.com>
---
 tests/migrate.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/tests/migrate.py b/tests/migrate.py
index e283ad0f..f471ddfc 100755
--- a/tests/migrate.py
+++ b/tests/migrate.py
@@ -221,8 +221,8 @@  class Migrator(object):
                             qmp_filename=new_qmp_filename,
                             with_agent=self.vdagent,
                             incoming_port=self.migration_port)
-        print self.migration_count
         self.migration_count += 1
+        print self.migration_count
 
 def main():
     args = get_args()