From: Tokunori Ikegami Date: Tue, 28 Jan 2025 15:00:54 +0000 (+0900) Subject: Revert "tests: add blkdev checking after NS creation" X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=db2c3e518c4322b079b0fbe94e626443f29db221;p=users%2Fsagi%2Fnvme-cli.git Revert "tests: add blkdev checking after NS creation" 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 [wagi: added commit message] Signed-off-by: Daniel Wagner --- diff --git a/tests/nvme_test.py b/tests/nvme_test.py index 306e5b39..6b231e43 100644 --- a/tests/nvme_test.py +++ b/tests/nvme_test.py @@ -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):