]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
tests: Fix nvme_copy_test python traceback fails
authorDennis Maisenbacher <dennis.maisenbacher@wdc.com>
Tue, 15 Oct 2024 12:08:37 +0000 (12:08 +0000)
committerDaniel Wagner <wagi@monom.org>
Tue, 29 Oct 2024 06:37:41 +0000 (07:37 +0100)
commit367de7fa38c07541b6472e48ec73ec907a4a2467
treefd83247cfa8ff3c2ac988826fb4891883afefa28
parent4cf388299e375e345164a70b68fe6a5685f030ea
tests: Fix nvme_copy_test python traceback fails

Reworking the `get_ocfs` function to correctly parse the ocfs field.
At the same time refactor `nvme id-ctrl` that extracts the ocfs
field into separate functions. This is in preparation for following
commits that reuse the same functionality.

Furthermore nvme_copy_test fails on devices that do not support any
copy formats. For this to pass we need to declare
`self.host_behavior_data` in any case.

Signed-off-by: Dennis Maisenbacher <dennis.maisenbacher@wdc.com>
tests/nvme_copy_test.py
tests/nvme_test.py