From 42d9cfbecb2a9a35e18890dd5cae87ea168e71b8 Mon Sep 17 00:00:00 2001 From: "nelsonb%netscape.com" Date: Thu, 5 Oct 2000 04:03:53 +0000 Subject: [PATCH] If $HOME or $DOMSUF is undefined, put out an error message and stop, instead of going on and producing complicated and meaningless results. git-svn-id: svn://10.0.0.236/trunk@80418 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/security/nss/tests/common/init.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mozilla/security/nss/tests/common/init.sh b/mozilla/security/nss/tests/common/init.sh index d56b7a77a04..ed2d3591c23 100644 --- a/mozilla/security/nss/tests/common/init.sh +++ b/mozilla/security/nss/tests/common/init.sh @@ -28,6 +28,13 @@ if [ ! -d ${TESTDIR} ]; then mkdir -p ${TESTDIR} fi +if [ -z "${HOST}" ]; then + echo "HOST environment variable is not defined."; exit 1 +fi +if [ -z "${DOMSUF}" ]; then + echo "DOMSUF environment variable is not defined."; exit 1 +fi + if [ ! -s "${HOSTDIR}" ]; then version=1 if [ -f ${TESTDIR}/${HOST} ]; then