@@ -12,10 +12,14 @@ # mt_ezstep stepname command .... # stepname=$1;shift command=$* +allstatus=99 +runstatus=99 +logpropstatus=99 + # if a logpro file exists then use it otherwise just run the command, nb// was using 2>&1 if [ -e ${stepname}.logpro ];then $command 2>&1| logpro ${stepname}.logpro ${stepname}.html &> ${stepname}.log allstatus=(${PIPESTATUS[0]} ${PIPESTATUS[1]}) runstatus=${allstatus[0]} @@ -32,11 +36,14 @@ if [ $runstatus -ne 0 ]; then exitstatus=$runstatus elif [ $logprostatus -eq 0 ]; then exitstatus=$logprostatus elif [ $logprostatus -eq 2 ]; then - exitstatus=0 -else + exitstatus=2 +elif [ $logprostatus -eq 1 ]; then exitstatus=1 +else + exitstatus=0 fi + $MT_MEGATEST -env2file .ezsteps/${stepname} exit $exitstatus