]> git.ipfire.org Git - thirdparty/qemu.git/commit
iotests: add filter_qmp_generated_node_ids()
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 18 Jan 2024 14:48:21 +0000 (09:48 -0500)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 26 Jan 2024 16:37:29 +0000 (19:37 +0300)
commit3b53bfd4c8cd17aa3cc73d479e10c7cb88b6b0ad
tree05b659b51cbccb8de532e612b8d5df3bcd6ee484
parente9eb53c5fed3f60a4ed533d096fd270268f02dc1
iotests: add filter_qmp_generated_node_ids()

Add a filter function for QMP responses that contain QEMU's
automatically generated node ids. The ids change between runs and must
be masked in the reference output.

The next commit will use this new function.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20240118144823.1497953-2-stefanha@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit da62b507a20510d819bcfbe8f5e573409b954006)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
(Mjt: context fix in tests/qemu-iotests/iotests.py due to
 v7.2.0-939-gbcc6777ad6 "iotests: Filter child node information")
tests/qemu-iotests/iotests.py