Bugfix for the testHarness runFunctions:

When using the '-l' option for the runApplicationAndReportOnError macro in the tutorials Allrun files,
  the default log filename will be overriden. In case of a runtime error for a testHarness test, we
  need to dump the last 50 lines from this filename instead of using the default log filename.
This commit is contained in:
Martin Beaudoin 2019-07-15 23:13:43 -04:00
parent baf1bbd90d
commit a2496c1388

View file

@ -36,10 +36,10 @@ verbose_report_on_runApplication_error()
if [ "$reportOnErrorOnlyOnce" ] ; then if [ "$reportOnErrorOnlyOnce" ] ; then
echo " " echo " "
echo " => Error running $APP_RUN..." 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 " " echo " "
if [ -f log.$APP_RUN ] ; then if [ -f $LOG_NAME ] ; then
tail -50 log.$APP_RUN tail -50 $LOG_NAME
exit $ecode; exit $ecode;
fi fi
fi fi