]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
Revert "tests: add blkdev checking after NS creation"
authorTokunori Ikegami <ikegami.t@gmail.com>
Tue, 28 Jan 2025 15:00:54 +0000 (00:00 +0900)
committerDaniel Wagner <wagi@monom.org>
Tue, 28 Jan 2025 16:07:19 +0000 (17:07 +0100)
This reverts commit c276f3ddd780c55458e509b74d80633728828950.

The namespace will be created but not yet attached, thus the block
device is not created either.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
[wagi: added commit message]
Signed-off-by: Daniel Wagner <wagi@kernel.org>
tests/nvme_test.py

index 306e5b39f202ea0e6efbf0f69f538f16fea98ea2..6b231e43ae40d7b93f24afcf0072fb55f501b278 100644 (file)
@@ -392,11 +392,6 @@ class TestNVMe(unittest.TestCase):
             err = subprocess.call(id_ns_cmd,
                                   shell=True,
                                   stdout=subprocess.DEVNULL)
-            if err == 0:
-                # enumerate new namespace block device
-                self.nvme_reset_ctrl()
-                # check if new namespace block device exists
-                err = 0 if stat.S_ISBLK(os.stat(self.ctrl + "n"  + str(nsid)).st_mode) else 1
         return err
 
     def attach_ns(self, ctrl_id, nsid):