Skip to content

Commit fdf7990

Browse files
ikegami-tigaw
authored andcommitted
Revert "tests: add blkdev checking after NS creation"
This reverts commit c276f3d. The namespace will be created but not yet attached, thus the block device is not created either. Signed-off-by: Tokunori Ikegami <[email protected]> [wagi: added commit message] Signed-off-by: Daniel Wagner <[email protected]>
1 parent 906791d commit fdf7990

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tests/nvme_test.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -392,11 +392,6 @@ def create_and_validate_ns(self, nsid, nsze, ncap, flbas, dps):
392392
err = subprocess.call(id_ns_cmd,
393393
shell=True,
394394
stdout=subprocess.DEVNULL)
395-
if err == 0:
396-
# enumerate new namespace block device
397-
self.nvme_reset_ctrl()
398-
# check if new namespace block device exists
399-
err = 0 if stat.S_ISBLK(os.stat(self.ctrl + "n" + str(nsid)).st_mode) else 1
400395
return err
401396

402397
def attach_ns(self, ctrl_id, nsid):

0 commit comments

Comments
 (0)