未验证 提交 00b6cdce 编写于 作者: X Xu Han 提交者: GitHub

Merge pull request #1204 from huangyum/nvdimm_1533337

nvdimm_dax: Fix ValueError for ndctl_ver
......@@ -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.
先完成此消息的编辑!
想要评论请 注册