Skip to contentSkip to conversation

scripts/device-crash-test: fix spurious EOFError messages

PATCH In review John Snow 2 participants 3 messages Oct 22, 2025 – Oct 23, 2025

lore
Share & tools
lore

John Snow

author
#0 lore raw

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
index 1ecb9663ae8..c1576e8b966 100755
@@ -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
Tested-by on v1 1/1
#1 lore raw
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.

---
  scripts/device-crash-test | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
scripts/device-crash-test +0 -0
index 1ecb9663ae8..c1576e8b966 100755

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!

author
#2 lore raw
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.

---
  scripts/device-crash-test | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
scripts/device-crash-test +1 -1
index 1ecb9663ae8..c1576e8b966 100755
@@ -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 -0
      fatal_failures = []
      wl_stats = {}

Thanks, that silences the messages, indeed!

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!