]> www.infradead.org Git - users/hch/nvme-cli.git/commitdiff
Print human readable output for get_features test master
authorNarasimhan V <sim@linux.vnet.ibm.com>
Thu, 6 Aug 2020 14:13:09 +0000 (19:43 +0530)
committerKeith Busch <kbusch@kernel.org>
Thu, 6 Aug 2020 16:16:04 +0000 (10:16 -0600)
Printing human readable output for get_features selftest.

Signed-off-by: Narasimhan V <sim@linux.vnet.ibm.com>
tests/nvme_get_features_test.py

index 5d68bbc2ecc328a06f02fdc373ff4b13d0d13ac7..2e407ef1e4da8fc6b399e66197acd5545a9263a0 100644 (file)
@@ -81,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,
@@ -91,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,