[svn-r9980] Purpose:
bug fix. Description: Need eval before the RUNCMD command because some machines like AIX, has RUNPARALLEL in the style as MP_PROCS=3 MP_TASKS_PER_NODE=3 poe ./a.out that throws the shell script off. Platforms tested: Tested in copper (pp) where it failed before. Tested in heping pp too. Misc. update:
This commit is contained in:
@@ -80,15 +80,11 @@ TOOLTEST() {
|
||||
actual="../testfiles/`basename $1 .txt`.out"
|
||||
actual_err="../testfiles/`basename $1 .txt`.err"
|
||||
shift
|
||||
#echo $pmode
|
||||
if test -n "$pmode"; then
|
||||
RUNCMD=$RUNPARALLEL
|
||||
else
|
||||
RUNCMD=$RUNSERIAL
|
||||
fi
|
||||
# set -x
|
||||
# echo RUNCMD=$RUNCMD
|
||||
# $RUNCMD /bin/true
|
||||
|
||||
# Run test.
|
||||
# Tflops interprets "$@" as "" when no parameter is given (e.g., the
|
||||
@@ -100,9 +96,9 @@ TOOLTEST() {
|
||||
echo "#############################"
|
||||
cd $srcdir/../testfiles
|
||||
if [ "`uname -s`" = "TFLOPS O/S" ]; then
|
||||
$RUNCMD $H5DIFF_BIN $@
|
||||
eval $RUNCMD $H5DIFF_BIN $@
|
||||
else
|
||||
$RUNCMD $H5DIFF_BIN "$@"
|
||||
eval $RUNCMD $H5DIFF_BIN "$@"
|
||||
fi
|
||||
) >$actual 2>$actual_err
|
||||
cat $actual_err >> $actual
|
||||
|
||||
Reference in New Issue
Block a user