diff options
Diffstat (limited to 'source4/lib/ldb/tests')
-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="." |