diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2012-08-15 11:33:47 +0100 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2012-09-05 15:48:56 -0300 |
commit | fa779b65fa77d5632df1f8b2df33e9023dbc4cc8 (patch) | |
tree | ae51d5e45d49272cd05eeced47b41de04be49b37 /qapi-schema-test.json | |
parent | f45ddd14209a4d1b95a4096d50a561b7f6270118 (diff) |
Add support for pretty-printing response in qmp-shell
Add a '-p' arg to the QMP/qmp-shell test program, which uses
the python pprint module to pretty-print the dictionary
returned from a command
$ qmp-shell -p /tmp/qemu
Welcome to the QMP low-level shell!
Connected to QEMU 1.1.50
(QEMU) query-cpus
{ u'return': [ { u'CPU': 0,
u'current': True,
u'halted': True,
u'pc': 1048556,
u'thread_id': 7108}]}
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'qapi-schema-test.json')
0 files changed, 0 insertions, 0 deletions