Don't produce output from these Rake tasks if running in the test suite.
Shorter version of these if clauses.