"be consistent" | |
PerlMonks |
Re: Reporting test failures within cronby davidrw (Prior) |
on Sep 13, 2005 at 12:23 UTC ( [id://491559]=note: print w/replies, xml ) | Need Help?? |
Assuming that whatever you're running (i think prove does) uses exit codes on failure, something simple like this would work (bash syntax):
And it relies on cron's behavior of emailing you whatever output is generated by a job -- here we're printing the whole output iff it failed..
In Section
Seekers of Perl Wisdom
|
|