Skip to contentSkip to conversation

device-crash-test: Ignore errors about a bus not being available

PATCH In review Thomas Huth 2 participants 2 messages Mar 23, 2021 – Mar 24, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 device-crash-test: Ignore errors about a bus not being available

Recent QEMU versions now sometimes exit cleanly with an error message that a bus is not available for a specified device. Don't flag those as an error in the device-crash-test script.

---
 scripts/device-crash-test | 1 +
 1 file changed, 1 insertion(+)
scripts/device-crash-test +1 -0
index 6d809ac711..8331c057b8 100755
@@ -175,6 +175,7 @@ ERROR_RULE_LIST = [
     {'log':r"Multiple VT220 operator consoles are not supported"},
     {'log':r"core 0 already populated"},
     {'log':r"could not find stage1 bootloader"},
+    {'log':r"No '.*' bus found for device"},
 
     # other exitcode=1 failures not listed above will just generate INFO messages:
     {'exitcode':1, 'loglevel':logging.INFO},
Signature · 1 line
2.27.0
#1 lore raw
Quoted 15 lines · Thomas Huth

Recent QEMU versions now sometimes exit cleanly with an error message that a bus is not available for a specified device. Don't flag those as an error in the device-crash-test script.

---
  scripts/device-crash-test | 1 +
  1 file changed, 1 insertion(+)
scripts/device-crash-test +0 -0
index 6d809ac711..8331c057b8 100755

scripts/device-crash-test ERROR_RULE_LIST = [ · line 181

Quoted 7 lines
scripts/device-crash-test +1 -0
@@ -175,6 +175,7 @@ ERROR_RULE_LIST = [
      {'log':r"Multiple VT220 operator consoles are not supported"},
      {'log':r"core 0 already populated"},
      {'log':r"could not find stage1 bootloader"},
+    {'log':r"No '.*' bus found for device"},
 
      # other exitcode=1 failures not listed above will just generate INFO messages:
      {'exitcode':1, 'loglevel':logging.INFO},

ACK, though I don't consider myself a maintainer of this file. Whose tree does it go in? (Trivial, if nobody's?)

--js