diff --git a/testHarness/foam-extend/4.1/scripts/AdditionalRunFunctions b/testHarness/foam-extend/4.1/scripts/AdditionalRunFunctions index 9ec85855a..f2c2331e1 100644 --- a/testHarness/foam-extend/4.1/scripts/AdditionalRunFunctions +++ b/testHarness/foam-extend/4.1/scripts/AdditionalRunFunctions @@ -36,10 +36,10 @@ verbose_report_on_runApplication_error() if [ "$reportOnErrorOnlyOnce" ] ; then echo " " echo " => Error running $APP_RUN..." - echo " => Here are the last 50 lines of the log file log.$APP_RUN..." + echo " => Here are the last 50 lines of the log file $LOG_NAME..." echo " " - if [ -f log.$APP_RUN ] ; then - tail -50 log.$APP_RUN + if [ -f $LOG_NAME ] ; then + tail -50 $LOG_NAME exit $ecode; fi fi