BUG: Allrun: run in non-test mode. Handle ./Alltest correctly

This commit is contained in:
mattijs
2017-10-05 09:52:17 +01:00
parent 8ae5b67a65
commit c903c39763
4 changed files with 26 additions and 5 deletions

View File

@ -124,7 +124,7 @@ logReport()
if [ -z "$optCollectOnly" ]
then
# Recursively run all tutorials
foamRunTutorials -test -skipFirst
foamRunTutorials -skipFirst $*
fi

View File

@ -244,7 +244,7 @@ fi
cp -f $FOAM_TUTORIALS/Allrun .
./Allrun
./Allrun -test
sed -e :a -e '/\\$/N; s/\\\n//; ta' Allrun > temp
APPLICATIONS=\

View File

@ -0,0 +1,16 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Reset the controlDict
if [ -f system/controlDict.orig ]
then
echo "$0: restoring the controlDict from controlDict.orig"
mv system/controlDict.orig system/controlDict
fi
./Allrun
#------------------------------------------------------------------------------