diff options
author | Andreas Schneider <asn@samba.org> | 2022-12-22 14:31:54 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2022-12-23 14:35:31 +0000 |
commit | 56b9723816f5f9bd1adbe39a7c64265122bf49d4 (patch) | |
tree | 647f854ced84e4d568c0b905614a23d2e2d8d5a6 | |
parent | c6cd1263275d5a48b98c2796e09f72909fb6455e (diff) | |
download | samba-56b9723816f5f9bd1adbe39a7c64265122bf49d4.tar.gz |
testprogs: Use system_or_builddir_binary() for test_pkinit_pac
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rwxr-xr-x | testprogs/blackbox/test_pkinit_pac.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/testprogs/blackbox/test_pkinit_pac.sh b/testprogs/blackbox/test_pkinit_pac.sh index 8b358fb469b..1f94ecebc9e 100755 --- a/testprogs/blackbox/test_pkinit_pac.sh +++ b/testprogs/blackbox/test_pkinit_pac.sh @@ -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" |