Skip to content

Commit ac415de

Browse files
Amery Songxiulipan
authored andcommitted
tools: ignore a false error message with 'panic'
On some platforms, the info "sof-audio-pci 0000:00:1f.3: status = 0x00000000 panic = 0x00000000" causes test failure because we detect the word "panic". This patch ignores this pattern. Signed-off-by: Amery Song <chao.song@intel.com>
1 parent a5f0cfc commit ac415de

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/sof-kernel-log-check.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ ignore_str="$ignore_str"'|thermal thermal_zone.*: failed to read out thermal zon
5050
ignore_str="$ignore_str"'|iwlwifi 0000:00:14\.3: Microcode SW error detected\. Restarting 0x0\.'
5151
ignore_str="$ignore_str"'|wlo1: authentication with f4:f5:e8:6b:45:bb timed out'
5252

53+
# Test cases on some platforms fail because the false error message:
54+
# sof-audio-pci 0000:00:1f.3: status = 0x00000000 panic = 0x00000000
55+
# Note that different platform may have different PCI ID, and the panic code
56+
# may not be 0x00000000.
57+
# Buglink: https://github.com/thesofproject/sof/issues/3395
58+
ignore_str="$ignore_str"'|sof-audio-pci 0000:[0-9a-f]{2}:[0-9a-f]{2}\.[0-9a-f]: status = 0x[0-9a-f]{8} panic = 0x[0-9a-f]{8}'
59+
5360
[[ ! "$err_str" ]] && echo "Missing error keyword list" && exit 0
5461
# dmesg KB size buffer size
5562
#dmesg_config_define=$(awk -F '=' '/CONFIG_LOG_BUF_SHIFT/ {print $2;}' /boot/config-$(uname -r))

0 commit comments

Comments
 (0)