Skip to content

Commit

Permalink
Merge pull request #5777 from sunqingwei811/master
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Richter <[email protected]>
  • Loading branch information
richtja authored Oct 10, 2023
2 parents bf5c7f2 + 60ea717 commit d8227a9
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 @@ -74,7 +74,7 @@ def _get_info():
cpuinfo = []
with open("/proc/cpuinfo", "rb") as proc_cpuinfo: # pylint: disable=W1514
for line in proc_cpuinfo:
if line == b"\n":
if line == b"\n" and len(cpuinfo) > 0:
break
cpuinfo.append(line)
return cpuinfo
Expand Down

0 comments on commit d8227a9

Please sign in to comment.