qemu/tests
John Snow 206dc47548 iotests: Conditionally silence certain AQMP errors
AQMP likes to be very chatty about errors it encounters. In general,
this is good because it allows us to get good diagnostic information for
otherwise complex async failures.

For example, during a failed QMP connection attempt, we might see:

+ERROR:qemu.aqmp.qmp_client.qemub-2536319:Negotiation failed: EOFError
+ERROR:qemu.aqmp.qmp_client.qemub-2536319:Failed to establish session: EOFError

This might be nice in iotests output, because failure scenarios
involving the new QMP library will be spelled out plainly in the output
diffs.

For tests that are intentionally causing this scenario though, filtering
that log output could be a hassle. For now, add a context manager that
simply lets us toggle this output off during a critical region.

(Additionally, a forthcoming patch allows the use of either legacy or
async QMP to be toggled with an environment variable. In this
circumstance, we can't amend the iotest output to just always expect the
error message, either. Just suppress it for now. More rigorous log
filtering can be investigated later if/when it is deemed safe to
permanently replace the legacy QMP library.)

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 20211026175612.4127598-6-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
2021-11-01 11:54:59 -04:00
..
acceptance tests/acceptance: Add a test for the bamboo ppc board 2021-10-21 11:42:47 +11:00
bench
data tests/data/acpi/virt: Update the empty expected file for PPTT 2021-10-21 08:04:15 -07:00
decode
docker tests/docker: add a debian-native image and make available 2021-10-12 08:38:10 +01:00
fp
guest-debug
image-fuzzer
include
keys
migration
multiboot
perf/block/qcow2
plugin tests/plugins/syscalls: adhere to new arg-passing scheme 2021-09-02 11:29:34 +01:00
qapi-schema qapi: New special feature flag "unstable" 2021-10-29 15:55:52 +02:00
qemu-iotests iotests: Conditionally silence certain AQMP errors 2021-11-01 11:54:59 -04:00
qtest tests/data/acpi/virt: Update the empty expected file for PPTT 2021-10-21 08:04:15 -07:00
rocker
tcg Hexagon (target/hexagon) put writes to USR into temp until commit 2021-10-28 22:22:49 -05:00
tsan
uefi-test-tools
unit host-utils: add unit tests for divu128/divs128 2021-10-27 17:10:00 -07:00
vm
vmstate-static-checker-data
check-block.sh
dbus-vmstate-daemon.sh
Makefile.include build: fix "make check" without earlier "make" 2021-10-13 10:47:22 +02:00
meson.build python, iotests: remove socket_scm_helper 2021-10-12 12:22:11 -04:00
requirements.txt
test-qht-par.c
vhost-user-bridge.c tests/vhost-user-bridge.c: Fix typo in help message 2021-09-04 17:34:05 -04:00