aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/262
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2020-03-30 20:00:10 -0400
committerMax Reitz <mreitz@redhat.com>2020-05-05 13:17:36 +0200
commit239bbcc0ae6ba24733839150955bdf8402e9ec55 (patch)
tree55903433b03da09b3dc24917249dae08388451d1 /tests/qemu-iotests/262
parentb031e9a5a65ceef722ba506bc5ee69ec785dc5c5 (diff)
iotests: add hmp helper with logging
Minor cleanup for HMP functions; helps with line length and consolidates HMP helpers through one implementation function. Although we are adding a universal toggle to turn QMP logging on or off, many existing callers to hmp functions don't expect that output to be logged, which causes quite a few changes in the test output. For now, offer a use_log parameter. Typing notes: QMPResponse is just an alias for Dict[str, Any]. It holds no special meanings and it is not a formal subtype of Dict[str, Any]. It is best thought of as a lexical synonym. We may well wish to add stricter subtypes in the future for certain shapes of data that are not formalized as Python objects, at which point we can simply retire the alias and allow mypy to more strictly check usages of the name. Signed-off-by: John Snow <jsnow@redhat.com> Message-Id: <20200331000014.11581-11-jsnow@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/262')
0 files changed, 0 insertions, 0 deletions