scripts/device-crash-test: fix spurious EOFError messages
PATCH 1/1 scripts/device-crash-test: fix spurious EOFError messages
When the QMP library was updated to match the standalone repository in 094ded52, I neglected to update the logging filter(s) in device-crash-test, which allowed the spurious messages to leak through.
Update the log filter to re-suppress these messages.
--- scripts/device-crash-test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/device-crash-test +1 -1
@@ -527,7 +527,7 @@ def main(): # Async QMP, when in use, is chatty about connection failures. # This script knowingly generates a ton of connection errors. # Silence this logger. - logging.getLogger('qemu.qmp.qmp_client').setLevel(logging.CRITICAL) + logging.getLogger('qemu.qmp.protocol').setLevel(logging.CRITICAL) fatal_failures = [] wl_stats = {}
Signature · 1 line
2.51.0
Quoted 18 lines · John Snow
When the QMP library was updated to match the standalone repository in
094ded52, I neglected to update the logging filter(s) in device-crash-test, which allowed the spurious messages to leak through.Update the log filter to re-suppress these messages.
Fixes 094ded52Reported-by Thomas Huth <[email protected]>Signed-off-by John Snow <[email protected]>--- scripts/device-crash-test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/device-crash-test +0
-0
scripts/device-crash-test def main(): · line 533
Quoted 8 lines
scripts/device-crash-test +1
-1@@ -527,7 +527,7 @@ def main(): # Async QMP, when in use, is chatty about connection failures. # This script knowingly generates a ton of connection errors. # Silence this logger. - logging.getLogger('qemu.qmp.qmp_client').setLevel(logging.CRITICAL) + logging.getLogger('qemu.qmp.protocol').setLevel(logging.CRITICAL) fatal_failures = [] wl_stats = {}
Thanks, that silences the messages, indeed!
Quoted 26 lines · Thomas Huth
Quoted 24 lines · John Snow
When the QMP library was updated to match the standalone repository in
094ded52, I neglected to update the logging filter(s) in device-crash-test, which allowed the spurious messages to leak through.Update the log filter to re-suppress these messages.
Fixes 094ded52Reported-by Thomas Huth <[email protected]>Signed-off-by John Snow <[email protected]>--- scripts/device-crash-test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/device-crash-test +1
-1@@ -527,7 +527,7 @@ def main(): # Async QMP, when in use, is chatty about connection failures. # This script knowingly generates a ton of connection errors. # Silence this logger. - logging.getLogger('qemu.qmp.qmp_client').setLevel(logging.CRITICAL) + logging.getLogger('qemu.qmp.protocol').setLevel(logging.CRITICAL)
Quoted 6 lines
scripts/device-crash-test def main(): · line 533
Quoted 2 lines
scripts/device-crash-test +0
-0fatal_failures = [] wl_stats = {}Thanks, that silences the messages, indeed!
Tested-by Thomas Huth <[email protected]>
The library is designed to be very vocal about connection failures so that tests don't silently fail even when there's no output expected, but for a test where we're intentionally trying to see if QEMU crashes over and over, it's not really so helpful :)
thanks for the report!