diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-01-08 20:47:48 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:49:53 -0500 |
commit | 7fcf10609be381e65767d62b080c6c199bb6573a (patch) | |
tree | 4638a9da224f7485642a26eb043454cbc9a70e26 | |
parent | d7963738959b4e9d4d1cc814aa93dbf341c56a64 (diff) | |
download | samba-7fcf10609be381e65767d62b080c6c199bb6573a.tar.gz samba-7fcf10609be381e65767d62b080c6c199bb6573a.tar.bz2 samba-7fcf10609be381e65767d62b080c6c199bb6573a.zip |
r12777: use TEST_DATA_PREFIX if available
metze
(This used to be commit 7e702939faf70d0c02fa71b315043795bc4a1d84)
-rwxr-xr-x | source4/lib/ldb/tests/test-tdb.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source4/lib/ldb/tests/test-tdb.sh b/source4/lib/ldb/tests/test-tdb.sh index 6899d98677..c0f9d7b2de 100755 --- a/source4/lib/ldb/tests/test-tdb.sh +++ b/source4/lib/ldb/tests/test-tdb.sh @@ -1,15 +1,16 @@ #!/bin/sh - -LDB_URL="tdbtest.ldb" +if [ -n "$TEST_DATA_PREFIX" ]; then + LDB_URL="$TEST_DATA_PREFIX/tdbtest.ldb" +else + LDB_URL="tdbtest.ldb" +fi export LDB_URL PATH=bin:$PATH export PATH -rm -f tdbtest.ldb -rm -f tdbtest.ldb.1 -rm -f tdbtest.ldb.2 +rm -f $LDB_URL* if [ -z "$LDBDIR" ]; then LDBDIR="." |