From aed9bf19db86cf7117cec39bbdb20ddf6eb981c6 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Fri, 27 May 2005 22:46:30 -0500 Subject: [svn-r10814] Purpose: Feature. Description: The temporary output filename of each remote host test is now a combination of hostname and configname. Platforms tested: Will be tested by Daily test. --- bin/runtest | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/runtest b/bin/runtest index e4c6faa..1b610e6 100755 --- a/bin/runtest +++ b/bin/runtest @@ -795,7 +795,7 @@ if [ -n "$TESTHOST" -a $HOSTNAME != "$TESTHOST" ]; then CONFIGNAME=`echo $h | cut -f2 -d/` h=`echo $h | cut -f1 -d/` n_test=`expr $n_test + 1` - TMP_OUTPUT="#$h.out" + TMP_OUTPUT="#${h}_${CONFIGNAME}.out" (PRINT "==============" PRINT "Testing $h" PRINT "==============") > $TMP_OUTPUT @@ -809,7 +809,7 @@ if [ -n "$TESTHOST" -a $HOSTNAME != "$TESTHOST" ]; then # launch concurrent tests only if srcdir is used if [ -n "$SRCDIR" ]; then $CMD & - echo $! > PID.$h + echo $! > PID.${h}_${CONFIGNAME} else $CMD fi @@ -830,14 +830,15 @@ if [ -n "$TESTHOST" -a $HOSTNAME != "$TESTHOST" ]; then # Pause a moment in case the timekeeper is terminating processes. wait 30 for h in $TESTHOST; do + CONFIGNAME=`echo $h | cut -f2 -d/` h=`echo $h | cut -f1 -d/` - TMP_OUTPUT="#$h.out" + TMP_OUTPUT="#${h}_${CONFIGNAME}.out" cat $TMP_OUTPUT # Verify test script did complete by checking the last lines (tail -2 $TMP_OUTPUT | grep -s 'Grand total' > /dev/null 2>&1) || (REPORT_ERR "****FAILED ${h}: snaptest did not complete****" && PRINT_BLANK) - rm -f $TMP_OUTPUT PID.$h + rm -f $TMP_OUTPUT PID.${h}_${CONFIGNAME} done exit 0 fi -- cgit v0.12