From: Andreas Schneider Date: Thu, 22 Dec 2022 12:04:25 +0000 (+0100) Subject: testprogs: Use system_or_builddir_binary() for demote-saveddb X-Git-Tag: talloc-2.4.0~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4981cb45dbdd6d0059b80f61091c8b97c36abbeb;p=thirdparty%2Fsamba.git testprogs: Use system_or_builddir_binary() for demote-saveddb Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- diff --git a/testprogs/blackbox/demote-saveddb.sh b/testprogs/blackbox/demote-saveddb.sh index 56ad136f667..3f296336271 100755 --- a/testprogs/blackbox/demote-saveddb.sh +++ b/testprogs/blackbox/demote-saveddb.sh @@ -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!