Skip to content

Commit

Permalink
Suitable for environments where the default language is not English
Browse files Browse the repository at this point in the history
Signed-off-by: wangp-h <[email protected]>
  • Loading branch information
wangp-h committed May 31, 2024
1 parent fb418c3 commit 4df5237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avocado/utils/cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ def lscpu():
:physical chips:
:chips: physical sockets * physical chips
"""
output = process.run("lscpu")
output = process.run("LANG=en_US.UTF-8;lscpu", shell=True)
res = {}
for line in output.stdout.decode("utf-8").split("\n"):
if "Physical cores/chip:" in line:
Expand Down

0 comments on commit 4df5237

Please sign in to comment.