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:
parent
baf1bbd90d
commit
a2496c1388
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Reference in a new issue