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

index 56ad136f6676f2339101a9cc9f3b48983b9609ba..3f296336271eb73dac81a543f74834eb1b47073a 100755 (executable)
@@ -17,10 +17,7 @@ failed=0
 
 samba_tree_dir="$SRCDIR_ABS/source4/selftest/provisions/multi-dc-samba-master-c596ac6"
 
-samba_tdbrestore="tdbrestore"
-if [ -x $BINDIR/tdbrestore ]; then
-       samba_tdbrestore="$BINDIR/tdbrestore"
-fi
+samba_tdbrestore=$(system_or_builddir_binary tdbrestore "${BINDIR}")
 
 # The undump script and the provision data is not part of release tarballs,
 # skip the tests in this case!