summaryrefslogtreecommitdiffstats
path: root/tests/nvme_smart_log_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/nvme_smart_log_test.py')
-rw-r--r--tests/nvme_smart_log_test.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/nvme_smart_log_test.py b/tests/nvme_smart_log_test.py
index e1eb6e5..356aa08 100644
--- a/tests/nvme_smart_log_test.py
+++ b/tests/nvme_smart_log_test.py
@@ -83,4 +83,6 @@ class TestNVMeSmartLogCmd(TestNVMe):
def test_smart_log(self):
""" Testcase main """
assert_equal(self.get_smart_log_ctrl(), 0)
- assert_equal(self.get_smart_log_all_ns(), 0)
+ smlp = self.supp_check_id_ctrl("lpa")
+ if smlp & 0x1 == True:
+ assert_equal(self.get_smart_log_all_ns(), 0)