Don't output to stdout from lib non-interactive methods

It pollutes the test output too much.
Merge pull request #8236 from cirosantilli/rm-lib-stdout

Don't output to stdout from lib non-interactive methods [failure unrelated]