summaryrefslogtreecommitdiff
path: root/testprogs
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2022-12-22 13:04:25 +0100
committerAndreas Schneider <asn@cryptomilk.org>2022-12-23 14:35:31 +0000
commit4981cb45dbdd6d0059b80f61091c8b97c36abbeb (patch)
tree97accd4fd605dd81f9b9c0e938431fd59a957253 /testprogs
parentee11fafcc91bcd24d94e81f449cd5c637ca95823 (diff)
downloadsamba-4981cb45dbdd6d0059b80f61091c8b97c36abbeb.tar.gz
testprogs: Use system_or_builddir_binary() for demote-saveddb
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'testprogs')
-rwxr-xr-xtestprogs/blackbox/demote-saveddb.sh5
1 files changed, 1 insertions, 4 deletions
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!