summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2022-12-22 13:05:05 +0100
committerAndreas Schneider <asn@cryptomilk.org>2022-12-23 14:35:31 +0000
commit2cfe2664392c6dc1d6505ef96f94621174fa04b2 (patch)
tree8537740eca2208a00268fb901925a7eff2b0cbfa
parent4981cb45dbdd6d0059b80f61091c8b97c36abbeb (diff)
downloadsamba-2cfe2664392c6dc1d6505ef96f94621174fa04b2.tar.gz
testprogs: Use system_or_builddir_binary() for functionalprep
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rwxr-xr-xtestprogs/blackbox/functionalprep.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/testprogs/blackbox/functionalprep.sh b/testprogs/blackbox/functionalprep.sh
index 9c68047d936..e3cec4c2638 100755
--- a/testprogs/blackbox/functionalprep.sh
+++ b/testprogs/blackbox/functionalprep.sh
@@ -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"