Skip to contentSkip to conversation

tests: Move postcopy migration test to migrate-set-parameters

PATCH In review Juan Quintela 2 participants 2 messages Sep 20, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests: Move postcopy migration test to migrate-set-parameters

migrate_set_speed and migrate_set_dowtime are deprecated since long ago.

---
 tests/postcopy-test.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
tests/postcopy-test.c +4 -4
index 8142f2ab90..991b954a83 100644
@@ -430,14 +430,14 @@ static void test_migrate(void)
      * machine, so also set the downtime.
      */
     global_qtest = from;
-    rsp = qmp("{ 'execute': 'migrate_set_speed',"
-              "'arguments': { 'value': 100000000 } }");
+    rsp = qmp("{ 'execute': 'migrate-set-parameters',"
+              "'arguments': { 'max-bandwidth': 100000000 } }");
     g_assert(qdict_haskey(rsp, "return"));
     QDECREF(rsp);
 
     /* 1ms downtime - it should never finish precopy */
-    rsp = qmp("{ 'execute': 'migrate_set_downtime',"
-              "'arguments': { 'value': 0.001 } }");
+    rsp = qmp("{ 'execute': 'migrate-set-parameters',"
+              "'arguments': { 'downtime-limit': 1 } }");
     g_assert(qdict_haskey(rsp, "return"));
     QDECREF(rsp);
 
Signature · 1 line
2.13.5
#1 lore raw
Quoted 1 line · Juan Quintela

migrate_set_speed and migrate_set_dowtime are deprecated since long ago.

s/dowtime/downtime/

Still, even if they are deprecated, maintaining coverage for both old and new spellings in the testsuite doesn't hurt, does it? Maybe it would be better to add a comment stating that our use of the old interface is intentional, or to run the test twice, once per spelling?

Signature · 3 lines
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org