unittest: add macros to reduce test boilerplate.

Also skip the test body if setup fails.

Bug: 110161494
Change-Id: Ia54d177b41f87e151332113d684b7373dc750d61
2 files changed