1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-09 18:21:05 +03:00

Allow resultmap file to be missing, for use in contrib self-tests.

This commit is contained in:
Tom Lane 2000-12-11 19:00:33 +00:00
parent 01b5efa5e3
commit b9110b97d9

View File

@ -1,5 +1,5 @@
#! /bin/sh
# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.13 2000/11/22 01:47:47 petere Exp $
# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.14 2000/12/11 19:00:33 tgl Exp $
me=`basename $0`
: ${TMPDIR=/tmp}
@ -243,6 +243,8 @@ trap '
# ----------
cat /dev/null >$TMPFILE
if [ -f "$inputdir/resultmap" ]
then
while read LINE
do
HOSTPAT=`expr "$LINE" : '.*/\(.*\)='`
@ -255,6 +257,7 @@ do
echo "$TESTNAME=$SUBST" >> $TMPFILE
fi
done <"$inputdir/resultmap"
fi
SUBSTLIST=`cat $TMPFILE`
rm -f $TMPFILE