From 4857e382ba0edab048a13357de85a04c503fab15 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Wed, 26 Mar 2003 18:08:24 -0500 Subject: [svn-r6523] Purpose: Bug fix. Description: n_test must be inited to 1 when it is for tests within one machine. Undid my previous mistake. Platforms tested: Eirene. Did not do the h5committest because this is a script and if it works in one machine, it most like will work in all Unix platform. Misc. update: --- bin/runtest | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bin/runtest b/bin/runtest index c2e1af7..76e7262 100755 --- a/bin/runtest +++ b/bin/runtest @@ -319,7 +319,7 @@ RUNSNAPTEST() esac shift done -echo CC=$CC, PATH=$PATH + if [ $retcode -ne 0 -o $skiptest = yes ]; then errcode=$retcode return $retcode @@ -716,10 +716,11 @@ fi # If -s is used with the first field, it will suppress completely # a $TYPE_TYPES that has no ';' (only 1 tst ). That results in no # test at all. +# Note that n_test must start as 1. # -n_test=0 +n_test=1 runtest_type="tests" -TEST="`echo $TEST_TYPES | cut -f1 -d';'`" +TEST="`echo $TEST_TYPES | cut -f$n_test -d';'`" while [ -n "$TEST" ]; do StartTime=`SecOfDay` RUNSNAPTEST $TEST @@ -729,6 +730,8 @@ while [ -n "$TEST" ]; do n_test=`expr $n_test + 1` TEST="`echo $TEST_TYPES | cut -f$n_test -s -d';'`" done +# dec n_test to show the actual number of tests ran. +n_test=`expr $n_test - 1` FLUSH_FILES -- cgit v0.12