diff options
author | Björn Jacke <bj@sernet.de> | 2012-06-26 12:23:41 +0200 |
---|---|---|
committer | Björn Jacke <bj@sernet.de> | 2012-06-27 00:19:19 +0200 |
commit | 94afad20b5177ef18a337a853fd033edd3b8b862 (patch) | |
tree | 7d5d9da0f7e3ff2496f43778cc70e3d57608d494 /testprogs | |
parent | ac4899eaa1d1b998959aa694f6cac5c2c425ecfc (diff) | |
download | samba-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.
Diffstat (limited to 'testprogs')
-rwxr-xr-x | testprogs/blackbox/test_ldb.sh | 16 |
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=$? |