From 9825b4b57b8c4640ccbb77efdf253ec4235989ee Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Thu, 10 Feb 2005 15:31:18 -0500 Subject: [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: --- tools/h5diff/testh5diff.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tools/h5diff/testh5diff.sh b/tools/h5diff/testh5diff.sh index 7c37b01..199b492 100755 --- a/tools/h5diff/testh5diff.sh +++ b/tools/h5diff/testh5diff.sh @@ -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 -- cgit v0.12