mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: skip some tutorials when dynamicCode is not available
- silence failed restoration of controlDict from controlDict.orig (idempotent?)
This commit is contained in:
@ -23,6 +23,10 @@ foamDictionary -help > /dev/null 2>&1 || {
|
||||
}
|
||||
|
||||
|
||||
# Some tests may need #calc
|
||||
unset noDynamicCode
|
||||
canCompile || noDynamicCode=true
|
||||
|
||||
for dict in \
|
||||
good*.dict \
|
||||
warn*.dict \
|
||||
@ -31,6 +35,11 @@ for dict in \
|
||||
do
|
||||
[ -f "$dict" ] || continue # protect against bad globs
|
||||
|
||||
if [ "$noDynamicCode" = true ] && grep -q '#calc' "$dict"
|
||||
then
|
||||
continue
|
||||
fi
|
||||
|
||||
# capture stderr, ignore stdout
|
||||
stderr=$(foamDictionary -keywords $dict 2>&1 >/dev/null)
|
||||
exitCode=$?
|
||||
|
||||
Reference in New Issue
Block a user