Reduce lines of codes of evtest