]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
testprogs: Use system_or_builddir_binary() for test_special_group
authorAndreas Schneider <asn@samba.org>
Thu, 22 Dec 2022 13:36:29 +0000 (14:36 +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_special_group.sh

index e2a6aae16dbc26266af3e467eccedcbaaeb03278..c587d5be4cf46af67a26054a3fe86aa182be6a81 100755 (executable)
@@ -18,10 +18,7 @@ failed=0
 OLD_RELEASE="release-4-5-0-pre1"
 old_release_dir="$SRCDIR_ABS/source4/selftest/provisions/$OLD_RELEASE"
 
-samba_tdbrestore="tdbrestore"
-if [ -x "$BINDIR/tdbrestore" ]; then
-       samba_tdbrestore="$BINDIR/tdbrestore"
-fi
+samba_tdbrestore=$(system_or_builddir_binary tdbrestore "${BINDIR}")
 
 samba_undump="$SRCDIR_ABS/source4/selftest/provisions/undump.sh"
 if [ ! -x "${samba_undump}" ]; then