qemu-iotests: map underscore to dash in QMP argument names
commit4f45056841abced5d57485edf0ff1d2ffc042cb1
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 28 Sep 2012 15:23:01 +0000 (28 17:23 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 28 Sep 2012 17:40:56 +0000 (28 19:40 +0200)
tree1595da258835c4894df7635554f382d92e3aa4d4
parent8f96b5be92fbd74798b97b1dc1ff5fbbe249ed11
qemu-iotests: map underscore to dash in QMP argument names

iotests.py provides a convenience function that uses Python keyword
arguments to represent QMP command arguments.  However, almost all
QMP commands use dashes for argument names (the sole exception is
block_set_io_throttle), and dashes are not allowed in a keyword
argument name.  Hence provide automatic conversion of underscores
to dashes.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/iotests.py