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.
In reply to Re: Silencing STDERR for tests
by roboticus
in thread Silencing STDERR for tests
by Your Mother
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |