summaryrefslogtreecommitdiff
path: root/security/nss/tests
diff options
context:
space:
mode:
authorrrelyea%redhat.com <devnull@localhost>2009-11-06 17:58:46 +0000
committerrrelyea%redhat.com <devnull@localhost>2009-11-06 17:58:46 +0000
commit4ae737cb2f8e4855ff7f8fd9953ae5b8244d2cb8 (patch)
treeab9c1519909cbfccb64871438c18599cbeba2eba /security/nss/tests
parent95bc4871a6932c3ef000bd333d21c0e7e26d2fb5 (diff)
downloadnss-hg-4ae737cb2f8e4855ff7f8fd9953ae5b8244d2cb8.tar.gz
Bug 527005 - Some # lines not processed as comment by ssl.sh.
patch by slavo r=rrelyea
Diffstat (limited to 'security/nss/tests')
-rwxr-xr-xsecurity/nss/tests/ssl/ssl.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/security/nss/tests/ssl/ssl.sh b/security/nss/tests/ssl/ssl.sh
index 27b6e1ecd..84e9b8c56 100755
--- a/security/nss/tests/ssl/ssl.sh
+++ b/security/nss/tests/ssl/ssl.sh
@@ -17,7 +17,7 @@
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1994-2000
+# Portions created by the Initial Developer are Copyright (C) 1994-2009
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
@@ -315,7 +315,7 @@ ssl_cov()
echo "$SCRIPTNAME: skipping $testname (ECC only)"
elif [ "$SERVER_MODE" = "fips" -o "$CLIENT_MODE" = "fips" ] && [ "$SSL2" -eq 0 -o "$EXP" -eq 0 ] ; then
echo "$SCRIPTNAME: skipping $testname (non-FIPS only)"
- elif [ "$ectype" != "#" ] ; then
+ elif [ "`echo $ectype | cut -b 1`" != "#" ] ; then
echo "$SCRIPTNAME: running $testname ----------------------------"
TLS_FLAG=-T
if [ "$tls" = "TLS" ]; then
@@ -386,7 +386,7 @@ ssl_auth()
echo "$SCRIPTNAME: skipping $testname (non-FIPS only)"
elif [ "$ectype" = "ECC" -a -z "$NSS_ENABLE_ECC" ] ; then
echo "$SCRIPTNAME: skipping $testname (ECC only)"
- elif [ "$ectype" != "#" ]; then
+ elif [ "`echo $ectype | cut -b 1`" != "#" ]; then
cparam=`echo $cparam | sed -e 's;_; ;g' -e "s/TestUser/$USER_NICKNAME/g" `
start_selfserv
@@ -442,7 +442,7 @@ ssl_stress()
echo "$SCRIPTNAME: skipping $testname (non-FIPS only)"
elif [ "${CLIENT_MODE}" = "fips" -a "${CAUTH}" -ne 0 ] ; then
echo "$SCRIPTNAME: skipping $testname (non-FIPS only)"
- elif [ "$ectype" != "#" ]; then
+ elif [ "`echo $ectype | cut -b 1`" != "#" ]; then
cparam=`echo $cparam | sed -e 's;_; ;g' -e "s/TestUser/$USER_NICKNAME/g" `
# These tests need the mixed cert
@@ -499,7 +499,7 @@ ssl_crl_ssl()
do
if [ "$ectype" = "ECC" -a -z "$NSS_ENABLE_ECC" ] ; then
echo "$SCRIPTNAME: skipping $testname (ECC only)"
- elif [ "$ectype" != "#" ]; then
+ elif [ "`echo $ectype | cut -b 1`" != "#" ]; then
servarg=`echo $sparam | awk '{r=split($0,a,"-r") - 1;print r;}'`
pwd=`echo $cparam | grep nss`
user=`echo $cparam | grep TestUser`