summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2022-12-22 16:54:30 +0100
committerAndreas Schneider <asn@cryptomilk.org>2022-12-23 14:35:31 +0000
commit5bed51fc6f001f521ab15bd01f4e30b034b4437b (patch)
tree32100255248e597d5139eaf3a3753001ac1a4163 /nsswitch
parenteb6f74bd74f4157caf5dec751f43d23a52aedf77 (diff)
downloadsamba-5bed51fc6f001f521ab15bd01f4e30b034b4437b.tar.gz
nsswitch:tests: Use system_or_builddir_binary() for test_rfc2307_mapping
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'nsswitch')
-rwxr-xr-xnsswitch/tests/test_rfc2307_mapping.sh9
1 files changed, 3 insertions, 6 deletions
diff --git a/nsswitch/tests/test_rfc2307_mapping.sh b/nsswitch/tests/test_rfc2307_mapping.sh
index d6d39a10b68..66ee865f8eb 100755
--- a/nsswitch/tests/test_rfc2307_mapping.sh
+++ b/nsswitch/tests/test_rfc2307_mapping.sh
@@ -19,14 +19,11 @@ failed=0
samba4bindir="$BINDIR"
wbinfo="$VALGRIND $samba4bindir/wbinfo"
samba_tool="$VALGRIND $samba4bindir/samba-tool"
-if [ -f "$samba4bindir/ldbmodify" ]; then
- ldbmodify="$samba4bindir/ldbmodify"
-else
- # Using system ldbmodify
- ldbmodify="ldbmodify"
-fi
. $(dirname $0)/../../testprogs/blackbox/subunit.sh
+. "$(dirname "${0}")/../../testprogs/blackbox/common_test_fns.inc"
+
+ldbmodify=$(system_or_builddir_binary ldbmodify "${BINDIR}")
testfail()
{