From f381ef7b599b1950b63da3ed815095066e6f4454 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Thu, 23 Dec 2004 15:52:13 -0500 Subject: [svn-r9711] Purpose: Feature Description: Added the timekeeper feature. Platforms tested: tested by hand. --- bin/runtest | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bin/runtest b/bin/runtest index 1389845..bb7ae64 100755 --- a/bin/runtest +++ b/bin/runtest @@ -745,6 +745,11 @@ if [ -n "$TESTHOST" -a $HOSTNAME != "$TESTHOST" ]; then PRINT_BLANK TEST_TYPE="launching" cd ${SNAPYARD}/log + # Fork off timekeeper if concurrent tests will be used. + if [ -n "$SRCDIR" ]; then + ($SNAPYARD/current/bin/timekeeper 300 &) + PRINT " Fork off timekeeper 300" + fi n_test=0 runtest_type="hosts" for h in $TESTHOST; do @@ -764,13 +769,11 @@ if [ -n "$TESTHOST" -a $HOSTNAME != "$TESTHOST" ]; then rsh|ssh) CMD="$RSH $h -n $PROGNAME -configname $CONFIGNAME" PRINT $CMD - # kludge: some how eirene and houdin can not have - # rsh connections too close. wait a few seconds - test $h = houdin && echo "wait 10 sec for houdin" && sleep 10 # launch concurrent tests only if srcdir is used if [ -n "$SRCDIR" ]; then $CMD & + echo $! > PID.$h else $CMD fi @@ -796,7 +799,7 @@ if [ -n "$TESTHOST" -a $HOSTNAME != "$TESTHOST" ]; then (tail -2 $TMP_OUTPUT | grep -s 'Grand total' > /dev/null 2>&1) || (REPORT_ERR "****FAILED ${h}: snaptest did not complete****" && PRINT_BLANK) - rm $TMP_OUTPUT + rm -f $TMP_OUTPUT PID.$h done exit 0 fi -- cgit v0.12