Skip to content

Commit

Permalink
fff
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhengfy committed Nov 16, 2023
1 parent d61b099 commit 2e1cd8e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions virttest/test_setup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,9 +532,10 @@ def set_node_num_huge_pages(self, num, node, pagesize, ignore_error=False):
obj.sys_fs_value = num
# If node has some used hugepage, result will be larger than expected.
if obj.sys_fs_value < int(num):
msg = ("%s (expecting %s) hugepages is set on node %s, "
"please check if the node "
"has enough memory") % (obj.sys_fs_value, num, node)
msg = "%s (expecting %s) hugepages is set on node %s, "\
"please check if the node "\
"has enough memory" % (obj.sys_fs_value, num, node)

if not ignore_error:
raise ValueError(msg)
else:
Expand Down

0 comments on commit 2e1cd8e

Please sign in to comment.