summaryrefslogtreecommitdiff
path: root/testprogs
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2022-12-22 13:19:27 +0100
committerAndreas Schneider <asn@cryptomilk.org>2022-12-23 14:35:31 +0000
commit6b7e505963539f3d09c43ba9cb4d0dfe9e769187 (patch)
tree4b4013ae9fd23bdace19723fc7807f704216864d /testprogs
parent6847110004564c2dace796013cca04d6defab836 (diff)
downloadsamba-6b7e505963539f3d09c43ba9cb4d0dfe9e769187.tar.gz
testprogs: Use system_or_builddir_binary() for test_client_kerberos
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'testprogs')
-rwxr-xr-xtestprogs/blackbox/test_client_kerberos.sh11
1 files changed, 2 insertions, 9 deletions
diff --git a/testprogs/blackbox/test_client_kerberos.sh b/testprogs/blackbox/test_client_kerberos.sh
index b436192e768..54554ea3290 100755
--- a/testprogs/blackbox/test_client_kerberos.sh
+++ b/testprogs/blackbox/test_client_kerberos.sh
@@ -28,15 +28,8 @@ samba_rpcclient="$samba_bindir/rpcclient"
samba_smbclient="$samba_bindir/smbclient"
samba_smbtorture="$samba_bindir/smbtorture"
-samba_kinit=kinit
-if test -x ${samba_bindir}/samba4kinit; then
- samba_kinit=${samba_bindir}/samba4kinit
-fi
-
-samba_kdestroy=kdestroy
-if test -x ${samba_bindir}/samba4kdestroy; then
- samba_kinit=${samba_bindir}/samba4kdestroy
-fi
+samba_kinit=$(system_or_builddir_binary kinit "${BINDIR}" samba4kinit)
+samba_kdestroy=$(system_or_builddir_binary kdestroy "${BINDIR}" samba4kdestroy)
test_rpc_getusername()
{