Skip to content

Commit

Permalink
Add minus value support for cpu topology info from sys file
Browse files Browse the repository at this point in the history
Signed-off-by: liang-cong-red-hat <[email protected]>
  • Loading branch information
liang-cong-red-hat committed Jan 26, 2025
1 parent 02ce8e2 commit 7df0d8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virttest/utils_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1782,7 +1782,7 @@ def get_cpu_topology(self, cpu_id):
try:
key_path = eval(key + "_path")
numa_sys = kernel_interface.SysFS(
key_path, session=self.session, regex="\d+%s"
key_path, session=self.session, regex="-?\d+%s"
)
key_val = str(numa_sys.sys_fs_value).rstrip("\n")
cpu_topo[key] = key_val
Expand Down

0 comments on commit 7df0d8e

Please sign in to comment.