[Perlunit-users] getting the exit status "right"
Status: Beta
Brought to you by:
mca1001
From: Robert S. <rsc...@no...> - 2011-05-18 13:39:59
|
Hi, Using the unit test framework for some Perl work and am running into a bit of trouble. When a test fails, i.e. an assert is triggered and I get an appropriate error message such as "not ok ERROR test_...." the exit status of the test is still 0. -> perl myTest.t ..... ERROR .... -> echo $? 0 This is not good as I would like make and rpm package creation to fail when a test fails. How do I get the unit test framework to set the exit status to something other than 0 when an ERROR occurs? Thanks, Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rsc...@no... rsc...@ca... 781-464-8147 |