From: Andreas Schneider Date: Mon, 14 Jun 2021 09:38:44 +0000 (+0200) Subject: s3:tests: Fix wbinfo_lookuprids_cache test with system tdb-tools X-Git-Tag: talloc-2.3.3~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=372e1f30305c70febdb7a8143d6917b312b1d0de;p=thirdparty%2Fsamba.git s3:tests: Fix wbinfo_lookuprids_cache test with system tdb-tools If libtdb is used from the system, we should use those tools by default. Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/source3/script/tests/test_wbinfo_lookuprids_cache.sh b/source3/script/tests/test_wbinfo_lookuprids_cache.sh index 0b21ffcd7c9..34ba50fe2d7 100755 --- a/source3/script/tests/test_wbinfo_lookuprids_cache.sh +++ b/source3/script/tests/test_wbinfo_lookuprids_cache.sh @@ -1,8 +1,18 @@ #!/bin/sh WBINFO="$VALGRIND ${WBINFO:-$BINDIR/wbinfo}" -TDBTOOL="${TDBTOOL:-$BINDIR/tdbtool}" -TDBDUMP="${TDBDUMP:-$BINDIR/tdbdump}" +samba_tdbtool=tdbtool +if test -x $BINDIR/tdbtool; then + samba_tdbtool=$BINDIR/tdbtool +fi +TDBTOOL="${TDBTOOL:-$samba_tdbtool}" + +samba_tdbdump=tdbdump +if test -x $BINDIR/tdbdump; then + samba_tdbdump=$BINDIR/tdbdump +fi +TDBDUMP="${TDBDUMP:-$samba_tdbdump}" + NET="$VALGRIND ${NET:-$BINDIR/net}" cache="$LOCK_DIR"/winbindd_cache.tdb