]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
testprogs: Use system_or_builddir_binary() for test_ldb_simple
authorAndreas Schneider <asn@samba.org>
Thu, 22 Dec 2022 12:38:27 +0000 (13:38 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 23 Dec 2022 14:35:31 +0000 (14:35 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
testprogs/blackbox/test_ldb_simple.sh

index 433bacdaf5cc007d405b61fda9377b7311ec5e5a..5f5f9b8018f3dae29f3f911d3189b47c6308c0c7 100755 (executable)
@@ -14,6 +14,7 @@ shift 2
 options="$*"
 
 . $(dirname $0)/subunit.sh
+. "$(dirname "${0}")/common_test_fns.inc"
 
 check()
 {
@@ -32,9 +33,7 @@ check()
        return $status
 }
 
-export PATH="$BINDIR:$PATH"
-
-ldbsearch="$VALGRIND ldbsearch"
+ldbsearch="${VALGRIND} $(system_or_builddir_binary ldbsearch "${BINDIR}")"
 
 check "currentTime" $ldbsearch $CONFIGURATION $options --basedn='' -H $p://$SERVER --scope=base currentTime || failed=$(expr $failed + 1)