tests: test-hmp: print command execution result
commit0eaf3b824745cacebfc321aef6787528d33d58fe
authorVadim Galitsyn <vadim.galitsyn@profitbricks.com>
Mon, 23 Oct 2017 15:13:10 +0000 (23 17:13 +0200)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 14 Dec 2017 11:09:42 +0000 (14 11:09 +0000)
treed2447f01a1ef02fd5b0001a95a58bcbd1ad842b2
parent81950da6819bbe77f38835724cc4643f19677554
tests: test-hmp: print command execution result

Provide HMP monitor command execution result as it would be seen
by user who established an HMP monitor session.

Currently many commands may silently fail without any sign of that.
This patch let this info to be printed once test is running in
verbose mode.

For the future it might be useful to fail the test if command has
failed, however it would require a bit of rework inside test
engine itself.

A simple example of silent failure without reporting it would to
add some non-existent HMP command into 'hmp_cmds' list. In this case
test will report it successfully passed without error.

Signed-off-by: Vadim Galitsyn <vadim.galitsyn@profitbricks.com>
Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
Cc: qemu-devel@nongnu.org
Message-Id: <20171023151310.6462-5-vadim.galitsyn@profitbricks.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tests/test-hmp.c