]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
tests: fix nvme_attach_detach_ns_test
authorDennis Maisenbacher <dennis.maisenbacher@wdc.com>
Fri, 11 Oct 2024 14:17:02 +0000 (14:17 +0000)
committerDaniel Wagner <wagi@monom.org>
Tue, 29 Oct 2024 06:37:41 +0000 (07:37 +0100)
commit4cf388299e375e345164a70b68fe6a5685f030ea
tree6220ca7d1923b6d8d820c57615f19f0372c2dbb4
parent5572c9072b7e8d06644276c1fa51cb2fd377ddb9
tests: fix nvme_attach_detach_ns_test

Calculate ncap with configured flbas instead of setting a hard coded
value that might be to big for the test device.

Also, for this test to not fail the `nvme list-ctrl` outputs a summary
of ctrls present which must be skipped when parsing for the ctrl-id.

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