From f3c82a78a0c6dd1ae5ac3621d17767e1605ef9a7 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 19 Oct 2007 04:17:28 +0000 Subject: [PATCH] ITS#5193 don't use "cd; pwd" to get the absolute path of schema dir --- tests/scripts/defines.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/scripts/defines.sh b/tests/scripts/defines.sh index ecbb373d62..e2e611554d 100755 --- a/tests/scripts/defines.sh +++ b/tests/scripts/defines.sh @@ -52,7 +52,10 @@ PROGDIR=./progs DATADIR=${USER_DATADIR-./testdata} TESTDIR=${USER_TESTDIR-$TESTWD/testrun} SCHEMADIR=${USER_SCHEMADIR-./schema} -ABS_SCHEMADIR=`(cd $SCHEMADIR; pwd)` +case "$SCHEMADIR" in +.*) ABS_SCHEMADIR="$TESTWD/$SCHEMADIR" ;; +*) ABS_SCHEMADIR="$SCHEMADIR" ;; +esac DBDIR1A=$TESTDIR/db.1.a DBDIR1B=$TESTDIR/db.1.b -- 2.39.5