summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2012-06-26 12:23:41 +0200
committerBjörn Jacke <bj@sernet.de>2012-06-27 00:19:19 +0200
commit94afad20b5177ef18a337a853fd033edd3b8b862 (patch)
tree7d5d9da0f7e3ff2496f43778cc70e3d57608d494
parentac4899eaa1d1b998959aa694f6cac5c2c425ecfc (diff)
downloadsamba-94afad20b5177ef18a337a853fd033edd3b8b862.tar.gz
samba-94afad20b5177ef18a337a853fd033edd3b8b862.tar.bz2
samba-94afad20b5177ef18a337a853fd033edd3b8b862.zip
tests: make test_ldb portable, eliminate "local" keyword
this is BASH only, don't use it.
-rwxr-xr-xtestprogs/blackbox/test_ldb.sh16
1 files changed, 6 insertions, 10 deletions
diff --git a/testprogs/blackbox/test_ldb.sh b/testprogs/blackbox/test_ldb.sh
index 1609a95d06..f326672670 100755
--- a/testprogs/blackbox/test_ldb.sh
+++ b/testprogs/blackbox/test_ldb.sh
@@ -121,15 +121,11 @@ echo "Search Options Control Query test returned 0 items"
failed=`expr $failed + 1`
fi
-wellknown_object_test() {
- local guid=$1
- local object=$2
- local basedns
- local dn
- local r
- local c
- local n
- local failed=0
+wellknown_object_test()
+(
+ guid=$1
+ object=$2
+ failed=0
basedns="<WKGUID=${guid},${BASEDN}> <wkGuId=${guid},${BASEDN}>"
for dn in ${basedns}; do
@@ -151,7 +147,7 @@ wellknown_object_test() {
done
return $failed
-}
+)
wellknown_object_test 22B70C67D56E4EFB91E9300FCA3DC1AA ForeignSecurityPrincipals
st=$?