From 7e76f7b0d17557fea7bc2a7e78e8b459574076da Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Fri, 19 Oct 2001 00:20:44 -0500 Subject: [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) --- bin/runtest | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/runtest b/bin/runtest index 7d12481..0813062 100755 --- a/bin/runtest +++ b/bin/runtest @@ -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 -- cgit v0.12