]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
testprogs: Use system_or_builddir_binary() for test_pkinit_pac
authorAndreas Schneider <asn@samba.org>
Thu, 22 Dec 2022 13:31:54 +0000 (14:31 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 23 Dec 2022 14:35:31 +0000 (14:35 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
testprogs/blackbox/test_pkinit_pac.sh

index 8b358fb469bbaefd3e4070d3518022b0230cdd97..1f94ecebc9ed4e4738259fb85a5d3ca316d98c66 100755 (executable)
@@ -22,15 +22,13 @@ failed=0
 
 samba_bindir="$BINDIR"
 
-samba_kinit="$(command -v kinit)"
-if [ -x "${samba_bindir}/samba4kinit" ]; then
-       samba_kinit="${samba_bindir}/samba4kinit"
-fi
 samba_smbtorture="${samba_bindir}/smbtorture --basedir=$SELFTEST_TMPDIR"
 
 . "$(dirname "$0")"/subunit.sh
 . "$(dirname "$0")"/common_test_fns.inc
 
+samba_kinit=$(system_or_builddir_binary kinit "${BINDIR}" samba4kinit)
+
 KRB5CCNAME_PATH="$PREFIX/tmpccache"
 rm -f "${KRB5CCNAME_PATH}"
 KRB5CCNAME="FILE:$KRB5CCNAME_PATH"