Skip to content

Commit

Permalink
tests/migration: parse the thread-id key of CpuInfoFast
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hyman Huang(黄勇) authored and dagrh committed Jul 5, 2021
1 parent 65a820d commit c99fb3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/migration/guestperf/engine.py
Expand Up @@ -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 ?

Expand Down

0 comments on commit c99fb3a

Please sign in to comment.