Skip to content
Snippets Groups Projects
Commit c99fb3a5 authored by Hyman Huang's avatar Hyman Huang Committed by Dr. David Alan Gilbert
Browse files

tests/migration: parse the thread-id key of CpuInfoFast


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: default avatarHyman Huang(黄勇) <huangy81@chinatelecom.cn>
Message-Id: <584578c0a0dd781cee45f72ddf517f6e6a41c504.1622729934.git.huangy81@chinatelecom.cn>
Reviewed-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
Signed-off-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
parent 65a820d2
No related branches found
No related tags found
No related merge requests found
......@@ -113,7 +113,7 @@ def _migrate(self, hardware, scenario, src, dst, connect_uri):
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 ?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment