summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-07-02 20:47:46 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-07-02 20:47:46 +0000
commit5b7ddc4bd2dcdde201ffa2681ede9a0a029bad96 (patch)
tree352b477f97c1c36105310589c7568259c76e9385 /tests
parentAdding upstream version 1.12. (diff)
downloadnvme-cli-5b7ddc4bd2dcdde201ffa2681ede9a0a029bad96.tar.xz
nvme-cli-5b7ddc4bd2dcdde201ffa2681ede9a0a029bad96.zip
Adding upstream version 1.14.upstream/1.14
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--tests/nvme_get_features_test.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/nvme_get_features_test.py b/tests/nvme_get_features_test.py
index 94ed865..2e407ef 100644
--- a/tests/nvme_get_features_test.py
+++ b/tests/nvme_get_features_test.py
@@ -54,7 +54,8 @@ class TestNVMeGetMandatoryFeatures(TestNVMe):
self.setup_log_dir(self.__class__.__name__)
self.feature_id_list = ["0x01", "0x02", "0x04", "0x05", "0x07",
"0x08", "0x09", "0x0A", "0x0B"]
- get_vector_list_cmd = "cat /proc/interrupts | grep nvme |" \
+ device = self.ctrl.split('/')[-1]
+ get_vector_list_cmd = "grep " + device + "q /proc/interrupts |" \
" cut -d : -f 1 | tr -d ' ' | tr '\n' ' '"
proc = subprocess.Popen(get_vector_list_cmd,
shell=True,
@@ -80,7 +81,7 @@ class TestNVMeGetMandatoryFeatures(TestNVMe):
for vector in range(self.vector_list_len):
get_feat_cmd = "nvme get-feature " + self.ctrl + \
" --feature-id=" + str(feature_id) + \
- " --cdw11=" + str(vector)
+ " --cdw11=" + str(vector) + " -H"
proc = subprocess.Popen(get_feat_cmd,
shell=True,
stdout=subprocess.PIPE,
@@ -90,7 +91,7 @@ class TestNVMeGetMandatoryFeatures(TestNVMe):
assert_equal(proc.wait(), 0)
else:
get_feat_cmd = "nvme get-feature " + self.ctrl + \
- " --feature-id=" + str(feature_id)
+ " --feature-id=" + str(feature_id) + " -H"
proc = subprocess.Popen(get_feat_cmd,
shell=True,
stdout=subprocess.PIPE,