From 4df52373af5aae05d2f5295c55416db2b309b753 Mon Sep 17 00:00:00 2001 From: wangp-h <781757836@qq.com> Date: Tue, 28 May 2024 14:27:50 +0800 Subject: [PATCH] Suitable for environments where the default language is not English Signed-off-by: wangp-h <781757836@qq.com> --- avocado/utils/cpu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avocado/utils/cpu.py b/avocado/utils/cpu.py index 319bdc37d2..19afa400ae 100644 --- a/avocado/utils/cpu.py +++ b/avocado/utils/cpu.py @@ -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: