Skip to content

Add logging to tests#3250

Merged
igaw merged 4 commits intolinux-nvme:masterfrom
igaw:fix-tests
Apr 9, 2026
Merged

Add logging to tests#3250
igaw merged 4 commits intolinux-nvme:masterfrom
igaw:fix-tests

Conversation

@igaw
Copy link
Copy Markdown
Collaborator

@igaw igaw commented Apr 9, 2026

It's a bit hard to debug any failures with the current Python tests. So log all input/output of the commands, which should help to figure out what's going on when something fails.

Fixes: #3247

igaw added 4 commits April 9, 2026 10:24
The ioctl probing needs to be a bit smarter to avoid kernel logging
invalid commands. At least set the NSID correctly.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Replace the open coded version of exec_cmd with this helper.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Add Python's logger framework and log all commands input/output, in
order to be able to debug failures.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
To allow debugging failures, enable the debug level on default.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
@igaw igaw merged commit 3e86668 into linux-nvme:master Apr 9, 2026
29 checks passed
@igaw igaw deleted the fix-tests branch April 9, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ioctl probing causes log entries

1 participant