[Spice-devel] [spice v1 2/8] tests: migrate: migrate count starts with 1
Victor Toso
victortoso at redhat.com
Mon Oct 7 12:19:29 UTC 2019
From: Victor Toso <me at 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 at redhat.com>
---
tests/migrate.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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()
--
2.21.0
More information about the Spice-devel
mailing list