...
"@key printer" should be added to tests that expect a printer
These keywords are defined in the jtreg TEST.ROOT file here https://github.com/openjdk/jdk/blob/f6be7fdf22eede767a0ac29b4f1cb770cfdc0b0f/test/jdk/TEST.ROOT#L14
There you can see the full list and some additional explanation.
These can then be used when filtering which tests to run. For example
...
- Disable "ReportCrash" service, it could show modal dialogs for the crashed tests, which break all other tests(see man ReportCrash):
$sudo defaults delete com.apple.ProblemReporter
$sudo defaults write com.apple.CrashReporter DialogType none
...