[PATCH blktests] nvme/052: don't remove the def_nsid namespace during the test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Skip def_nsid(1) namespace removal during the test as it will be removed
from _remove_nvmet_ns during _nvmet_target_cleanup phase

$ ./check nvme/052
nvme/052 (tr=loop) (Test file-ns creation/deletion under one subsystem) [failed]
    runtime  3.273s  ...  3.299s
    --- tests/nvme/052.out	2024-11-19 19:29:36.873210200 -0500
    +++ /root/blktests/results/nodev_tr_loop/nvme/052.out.bad	2024-11-19 21:29:26.016088521 -0500
    @@ -1,2 +1,4 @@
     Running nvme/052
    +common/nvme: line 635: /sys/kernel/config/nvmet//subsystems/blktests-subsystem-1/namespaces/1/enable: No such file or directory
    +rmdir: failed to remove '/sys/kernel/config/nvmet//subsystems/blktests-subsystem-1/namespaces/1': No such file or directory
     Test complete

Fixes: 67e25d7 ("nvme/052: do not create namespace when setting up the target")
Signed-off-by: Yi Zhang <yi.zhang@xxxxxxxxxx>
---
 tests/nvme/052 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/nvme/052 b/tests/nvme/052
index 8443c90..2ff9e53 100755
--- a/tests/nvme/052
+++ b/tests/nvme/052
@@ -71,6 +71,8 @@ test() {
 			break
 		fi
 
+		[ ${nsid} -eq 1 ] && continue
+
 		_remove_nvmet_ns "${def_subsysnqn}" "${nsid}"
 
 		# wait until async request is processed and ns is removed
-- 
2.45.1





[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux