[svn-r4556] Purpose:

Feature (actually a kludge)
Description:
    The old "setenv" option for the snaptest.cfg cannot handle
    if there are white spaces in the setenv value part.
    Added a "setenv2" that expects the value consists of 2 parts.
    A better solution (like can parse in double quoted values) is
    needed.
Platforms tested:
    eirene with houdin (solaris 2.7)
This commit is contained in:
Albert Cheng 2001-10-19 00:20:44 -05:00
parent 3b2053492a
commit 7e76f7b0d1

View File

@ -317,6 +317,15 @@ RUNSNAPTEST()
export $1
shift
;;
setenv2)
# set environment variable with 2 values
# a kludge now--the extra single quotes are needed
# else eval complains.
shift
eval $1="'$2 $3'"
export $1
shift; shift
;;
*) # unknown test
PRINT "$0: unknown type of test ($1)"
retcode=1