ENH: provide isParallel test in RunFunctions

- allows writing Allrun scripts that can be easily tested in
  serial or parallel
This commit is contained in:
Mark Olesen
2016-10-07 18:00:00 +02:00
parent 53faca832d
commit ba6f59a79e

View File

@ -28,6 +28,18 @@
# Miscellaneous functions for running tutorial cases
#------------------------------------------------------------------------------
#
# Look for '-parallel' in the argument list.
#
isParallel()
{
for i; do [ "$i" = "-parallel" ] && return 0; done
return 1
}
#
# Look for '-test' in the argument list.
#
isTest()
{
for i in "$@"; do