Skip to content

Commit

Permalink
nvme/039: adjust to util-linux v2.40 dmesg format change
Browse files Browse the repository at this point in the history
Since util-linux version 2.40, dmesg supports "caller ID". When Linux
kernel supports CONFIG_PRINTK_CALLER, dmesg adds thread ID or CPU ID
with parenthesis such as [    T123] or [     C16] to each message. This
made the dmesg string check of the test case nvme/039 fail. Fix this by
filtering out the added caller ID field.

Signed-off-by: Shin'ichiro Kawasaki <[email protected]>
  • Loading branch information
kawasaki committed May 9, 2024
1 parent f6f2d82 commit dd845a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/nvme/039
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ last_dmesg()
{
local nr_lines=$1

dmesg -t | grep -v "callbacks suppressed" | tail "-$nr_lines"
dmesg -t | grep -v "callbacks suppressed" | tail "-$nr_lines" \
| sed 's/\[.*\] //'
}

inject_unrec_read_on_read()
Expand Down

0 comments on commit dd845a7

Please sign in to comment.