summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2022-12-22 13:22:36 +0100
committerAndreas Schneider <asn@cryptomilk.org>2022-12-23 14:35:31 +0000
commitfa5cba8f6ff954bc19faebed2da2cdce5b337a3a (patch)
tree3538310497e8875f0624ccfcb82bf6aed8d0ece5
parentc9ca0f796cd63aee1aa7e13d7de15ab9930b8133 (diff)
downloadsamba-fa5cba8f6ff954bc19faebed2da2cdce5b337a3a.tar.gz
testprogs: Use system_or_builddir_binary() for test_kinit_mit
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rwxr-xr-xtestprogs/blackbox/test_kinit_mit.sh14
1 files changed, 4 insertions, 10 deletions
diff --git a/testprogs/blackbox/test_kinit_mit.sh b/testprogs/blackbox/test_kinit_mit.sh
index 2aa44e66568..99111f60de7 100755
--- a/testprogs/blackbox/test_kinit_mit.sh
+++ b/testprogs/blackbox/test_kinit_mit.sh
@@ -32,17 +32,11 @@ samba_texpect="$samba_bindir/texpect"
samba_enableaccount="$samba_tool user enable"
machineaccountccache="$samba_srcdir/scripting/bin/machineaccountccache"
-ldbmodify="ldbmodify"
-if [ -x "$samba_bindir/ldbmodify" ]; then
- ldbmodify="$samba_bindir/ldbmodify"
-fi
-
-ldbsearch="ldbsearch"
-if [ -x "$samba_bindir/ldbsearch" ]; then
- ldbsearch="$samba_bindir/ldbsearch"
-fi
-
. $(dirname $0)/subunit.sh
+. "$(dirname "${0}")/common_test_fns.inc"
+
+ldbmodify=$(system_or_builddir_binary ldbmodify "${BINDIR}")
+ldbsearch=$(system_or_builddir_binary ldbsearch "${BINDIR}")
test_smbclient()
{