[Compass-ci] [PATCH lkp-tests] tests/send_email: refactor send_email