提交 ddcc25ee 编写于 作者: Y Yumei Huang

nvdimm_dax: Fix ValueError for ndctl_ver

Signed-off-by: NYumei Huang <yuhuang@redhat.com>
上级 f4c3d5f8
......@@ -119,7 +119,7 @@ def run(test, params, env):
except process.CmdError:
test.error("ndctl is not available in host!")
ndctl_ver = process.system_output("ndctl -v", shell=True)
if int(ndctl_ver) < 56:
if float(ndctl_ver) < 56:
test.cancel("ndctl version should be equal or greater than 56!"
"Current ndctl version is %s." % ndctl_ver)
try:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册