in reply to Silencing STDERR for tests

Yer Mum:

Maybe you should modify the calling test framework to do the redirect, and let it execute your script. That would eliminate "cookie-cutter" code. (If I were to do it, I'd log it to a file so you could read it in the event that some tests fail.)

...roboticus

When your only tool is a hammer, all problems look like your thumb.