File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ class TestNVMeAttachDetachNSCmd(TestNVMe):
4848 def setUp (self ):
4949 """ Pre Section for TestNVMeAttachDetachNSCmd """
5050 super ().setUp ()
51+
52+ if not self .ns_mgmt_supported :
53+ self .skipTest ("Namespace Management / Attach not supported by controller" )
54+
5155 self .dps = 0
5256 self .flbas = 0
5357 (ds , ms ) = self .get_lba_format_size ()
Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ class TestNVMeCreateMaxNS(TestNVMe):
4848 def setUp (self ):
4949 """ Pre Section for TestNVMeAttachDetachNSCmd """
5050 super ().setUp ()
51+
52+ if not self .ns_mgmt_supported :
53+ self .skipTest ("Namespace Management / Attach not supported by controller" )
54+
5155 self .dps = 0
5256 self .flbas = 0
5357 (ds , ms ) = self .get_lba_format_size ()
Original file line number Diff line number Diff line change @@ -62,6 +62,10 @@ class TestNVMeFormatCmd(TestNVMe):
6262 def setUp (self ):
6363 """ Pre Section for TestNVMeFormatCmd """
6464 super ().setUp ()
65+
66+ if not self .ns_mgmt_supported :
67+ self .skipTest ("Namespace Management / Attach not supported by controller" )
68+
6569 self .dps = 0
6670 self .flbas = 0
6771 # Assuming run_ns_io with 4KiB * 10 writes.
You can’t perform that action at this time.
0 commit comments