]> git.sur5r.net Git - openldap/commitdiff
ITS#5193 don't use "cd; pwd" to get the absolute path of schema dir
authorHoward Chu <hyc@openldap.org>
Fri, 19 Oct 2007 04:17:28 +0000 (04:17 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 19 Oct 2007 04:17:28 +0000 (04:17 +0000)
tests/scripts/defines.sh

index ecbb373d626394b98abb1c4716c1bf1acf57006d..e2e611554dbdd752f9d922c7f27fc3f1dbf4230b 100755 (executable)
@@ -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