From 74c322019f4c2731a014406dac44322891d3657c Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Sat, 25 Sep 2004 16:48:51 -0500 Subject: [svn-r9319] Purpose: Feature Description: Added code to support the -configname feature. Platforms tested: no h5committest which does not test this command. ran it by hand in eirene comparing tg-login1 and tg-login2. Misc. update: --- bin/runtest | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/runtest b/bin/runtest index 9382c54..988981c 100755 --- a/bin/runtest +++ b/bin/runtest @@ -742,6 +742,11 @@ if [ -n "$TESTHOST" -a $HOSTNAME != "$TESTHOST" ]; then n_test=0 runtest_type="hosts" for h in $TESTHOST; do + # Must do CONFIGNAME before $h got changed by the second cut. + # cut returns the whole string if there is no / in the string + # at all. But that works okay for the CONFIGNAME too. + CONFIGNAME=`echo $h | cut -f2 -d/` + h=`echo $h | cut -f1 -d/` n_test=`expr $n_test + 1` TMP_OUTPUT="#$h.out" (PRINT "==============" @@ -751,7 +756,7 @@ if [ -n "$TESTHOST" -a $HOSTNAME != "$TESTHOST" ]; then # run the remote shell command with output to $TMP_OUTPUT case "$RSH" in rsh|ssh) - CMD="$RSH $h -n $PROGNAME -configname $h" + 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 @@ -778,6 +783,7 @@ if [ -n "$TESTHOST" -a $HOSTNAME != "$TESTHOST" ]; then # wait for all launched tests to finish, then cat them back out. wait for h in $TESTHOST; do + h=`echo $h | cut -f1 -d/` TMP_OUTPUT="#$h.out" cat $TMP_OUTPUT # Verify test script did complete by checking the last lines -- cgit v0.12