TST/CLN: Only print on test failure.

Don't pollute test output.
Merge pull request #5360 from jtratner/only-print-conditionally-in-tests

TST/CLN: Only print on test failures.