Adding upstream version 2.12.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
65508f0a28
commit
c0fbec1eb4
571 changed files with 10718 additions and 2738 deletions
|
@ -81,27 +81,23 @@ class TestNVMeGetMandatoryFeatures(TestNVMe):
|
|||
"""
|
||||
if str(feature_id) == "0x09":
|
||||
for vector in range(self.vector_list_len):
|
||||
get_feat_cmd = "nvme get-feature " + self.ctrl + \
|
||||
" --feature-id=" + str(feature_id) + \
|
||||
" --cdw11=" + str(vector) + " -H"
|
||||
get_feat_cmd = f"{self.nvme_bin} get-feature {self.ctrl} " + \
|
||||
f"--feature-id={str(feature_id)} " + \
|
||||
f"--cdw11={str(vector)} --human-readable"
|
||||
proc = subprocess.Popen(get_feat_cmd,
|
||||
shell=True,
|
||||
stdout=subprocess.PIPE,
|
||||
encoding='utf-8')
|
||||
feature_output = proc.communicate()[0]
|
||||
print(feature_output)
|
||||
self.assertEqual(proc.wait(), 0)
|
||||
else:
|
||||
get_feat_cmd = "nvme get-feature " + self.ctrl + \
|
||||
" --feature-id=" + str(feature_id) + " -H"
|
||||
get_feat_cmd = f"{self.nvme_bin} get-feature {self.ctrl} " + \
|
||||
f"--feature-id={str(feature_id)} --human-readable"
|
||||
if str(feature_id) == "0x05":
|
||||
get_feat_cmd += f" --namespace-id={self.default_nsid}"
|
||||
proc = subprocess.Popen(get_feat_cmd,
|
||||
shell=True,
|
||||
stdout=subprocess.PIPE,
|
||||
encoding='utf-8')
|
||||
feature_output = proc.communicate()[0]
|
||||
print(feature_output)
|
||||
self.assertEqual(proc.wait(), 0)
|
||||
|
||||
def test_get_mandatory_features(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue