iotests: _filter_qmp for pretty JSON output
_filter_qmp should be able to correctly filter out the QMP version object for pretty JSON output. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
4821cd4cfd
commit
cc20b07a42
@ -167,7 +167,9 @@ _filter_qmp()
|
||||
{
|
||||
_filter_win32 | \
|
||||
sed -e 's#\("\(micro\)\?seconds": \)[0-9]\+#\1 TIMESTAMP#g' \
|
||||
-e 's#^{"QMP":.*}$#QMP_VERSION#'
|
||||
-e 's#^{"QMP":.*}$#QMP_VERSION#' \
|
||||
-e '/^ "QMP": {\s*$/, /^ }\s*$/ c\' \
|
||||
-e ' QMP_VERSION'
|
||||
}
|
||||
|
||||
# replace driver-specific options in the "Formatting..." line
|
||||
|
Loading…
Reference in New Issue
Block a user