diff --git a/testprogs/blackbox/renamedc.sh b/testprogs/blackbox/renamedc.sh index 6e24cdfc81d..fc32cad7f06 100755 --- a/testprogs/blackbox/renamedc.sh +++ b/testprogs/blackbox/renamedc.sh @@ -10,13 +10,10 @@ fi PREFIX="$1" shift 1 -samba4bindir="$BINDIR" -ldbsearch="ldbsearch" -if [ -x "$samba4bindir/ldbsearch" ]; then - ldbsearch="$samba4bindir/ldbsearch" -fi - . $(dirname $0)/subunit.sh +. "$(dirname "${0}")/common_test_fns.inc" + +ldbsearch=$(system_or_builddir_binary ldbsearch "${BINDIR}") if [ ! -d $PREFIX/renamedc_test ]; then mkdir -p $PREFIX/renamedc_test