Skip to content

Commit

Permalink
Improve robustness for environments where the default language is not…
Browse files Browse the repository at this point in the history
… English

Signed-off-by: wangp-h <[email protected]>
  • Loading branch information
wangp-h committed May 28, 2024
1 parent fb418c3 commit 6811268
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 6811268

Please sign in to comment.