test: simplify test skipping
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
test, doc
-
Make
common.skip()
exit. Also addcommon.printSkipMessage()
for partial skips. Fixes: https://github.com/nodejs/node/issues/14016 -
Don't make needless things before skip
PR is big but seems easy to skim. Maybe it would be more convenient to review it commit by commit.