summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornelsonb%netscape.com <devnull@localhost>2000-10-05 04:03:53 +0000
committernelsonb%netscape.com <devnull@localhost>2000-10-05 04:03:53 +0000
commit6d299008d7ea03b798743e19298a91039d109f4d (patch)
tree03e13a9674a2c2c9c5918553b02ffb4ceaaf8350
parent654714c48fc83fc471c3089b9f9ab127f8d40aca (diff)
downloadnss-hg-6d299008d7ea03b798743e19298a91039d109f4d.tar.gz
If $HOME or $DOMSUF is undefined, put out an error message and stop,
instead of going on and producing complicated and meaningless results.
-rw-r--r--security/nss/tests/common/init.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/security/nss/tests/common/init.sh b/security/nss/tests/common/init.sh
index d56b7a77a..ed2d3591c 100644
--- a/security/nss/tests/common/init.sh
+++ b/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