Skip Menu |

This queue is for tickets about the Test-Harness CPAN distribution.

Report information
The Basics
Id: 53561
Status: rejected
Priority: 0/
Queue: Test-Harness

People
Owner: Nobody in particular
Requestors: avar [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 3.17_04
Fixed in: (no value)



Subject: Add a cron-friendly option to prove to either print everything or nothing at all depending on exit code
I run prove in cron like this: perl -e 'my $out = qx[prove -vr /etc/t 2>&1]; print $out if $?' It would be nice if there was a command-line option to do the same, i.e. either be completely quiet if everything's OK or print the normal output if it's not. Obviously this would require buffering the output.
It's a nice idea - but is not really a job for a wrapper command? I imagine such a thing could be useful for other programs too. $ qifok prove ... And if such a thing existed it could also be customised to trigger on conditions other than nz exit status: for example it could emit all output if anything appeared on stderr - or if certain text appeared in the output. So, for that reason I'm going to reject it as a change to Test::Harness - but not as a good idea :)