avocado-framework / avocado-vt

Avocado VT Plugin
https://avocado-vt.readthedocs.org/
Other
83 stars 242 forks source link

env_process: Fix the issue of iterating an integer #3902

Closed zhencliu closed 4 months ago

zhencliu commented 4 months ago

A recent avocado commit(241c9cdf62f0162e24c37913ab37053971563ee4) enhanced cpu.get_family to return an integer for a AMD cpu, which can cause error, but get_family was declared to return a name, instead of an integer, which is confused. Added this commit as a workaround to bypass the error.

We expect a better solution for cpu.get_family later

ID: 2286

zhencliu commented 4 months ago

Pulled the latest avocado, and ran a test with a AMD cpu (cpu family : 25), it passed.

Hi @luckyh and @YongxueHong , would you please help to review the patch? Thanks.