]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
testprogs: Use system_or_builddir_binary() for functionalprep
authorAndreas Schneider <asn@samba.org>
Thu, 22 Dec 2022 12:05:05 +0000 (13:05 +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/functionalprep.sh

index 9c68047d93637bea77e59725cbb034b74e33d4a8..e3cec4c2638a1a615245e847b429b13f21904e0a 100755 (executable)
@@ -21,10 +21,7 @@ release_dir="$SRCDIR_ABS/source4/selftest/provisions/$RELEASE"
 OLD_RELEASE="release-4-1-0rc3"
 old_release_dir="$SRCDIR_ABS/source4/selftest/provisions/$OLD_RELEASE"
 
-samba_tdbrestore="tdbrestore"
-if [ -x "$BINDIR/tdbrestore" ]; then
-       samba_tdbrestore="$BINDIR/tdbrestore"
-fi
+samba_tdbrestore=$(system_or_builddir_binary tdbrestore "${BINDIR}")
 
 samba_undump="$SRCDIR_ABS/source4/selftest/provisions/undump.sh"