qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] tests: Move postcopy migration test to migrate-set-parameters
@ 2017-09-20 10:50 Juan Quintela
  2017-09-20 14:01 ` Eric Blake
  0 siblings, 1 reply; 2+ messages in thread
From: Juan Quintela @ 2017-09-20 10:50 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

migrate_set_speed and migrate_set_dowtime are deprecated since long ago.

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 tests/postcopy-test.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/postcopy-test.c b/tests/postcopy-test.c
index 8142f2ab90..991b954a83 100644
--- a/tests/postcopy-test.c
+++ b/tests/postcopy-test.c
@@ -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);
 
-- 
2.13.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] tests: Move postcopy migration test to migrate-set-parameters
  2017-09-20 10:50 [Qemu-devel] [PATCH] tests: Move postcopy migration test to migrate-set-parameters Juan Quintela
@ 2017-09-20 14:01 ` Eric Blake
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Blake @ 2017-09-20 14:01 UTC (permalink / raw)
  To: Juan Quintela, qemu-devel; +Cc: lvivier, dgilbert, peterx

[-- Attachment #1: Type: text/plain, Size: 559 bytes --]

On 09/20/2017 05:50 AM, Juan Quintela wrote:
> 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?


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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 619 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-20 14:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-20 10:50 [Qemu-devel] [PATCH] tests: Move postcopy migration test to migrate-set-parameters Juan Quintela
2017-09-20 14:01 ` Eric Blake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).