]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
tests/migration: parse the thread-id key of CpuInfoFast
authorHyman Huang(黄勇) <huangy81@chinatelecom.cn>
Thu, 3 Jun 2021 14:19:53 +0000 (22:19 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 5 Jul 2021 09:51:26 +0000 (10:51 +0100)
thread_id in CpuInfoFast is deprecated, parse thread-id instead
after execute qmp query-cpus-fast. fix this so that test can
go smoothly.

Signed-off-by: Hyman Huang(黄勇) <huangy81@chinatelecom.cn>
Message-Id: <584578c0a0dd781cee45f72ddf517f6e6a41c504.1622729934.git.huangy81@chinatelecom.cn>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tests/migration/guestperf/engine.py

index 208e09579434603003258bf5e21c9a0f4b2bf627..9e16fa92d2891518babbfad1cc94c8faba827de4 100644 (file)
@@ -113,7 +113,7 @@ class Engine(object):
         vcpus = src.command("query-cpus-fast")
         src_threads = []
         for vcpu in vcpus:
-            src_threads.append(vcpu["thread_id"])
+            src_threads.append(vcpu["thread-id"])
 
         # XXX how to get dst timings on remote host ?