[Compass-ci] [PATCH lkp-tests] tests: add get_cpu function