diff options
author | Björn Jacke <bj@sernet.de> | 2012-06-25 20:28:22 +0200 |
---|---|---|
committer | Bjoern Jacke <bj@sernet.de> | 2012-06-26 00:32:10 +0200 |
commit | d1aeb2d1c3bfb87e9ab4079535867b40fb722fde (patch) | |
tree | 4a7220ffdeb0006867b61988277d4dd9c2e2dfe4 | |
parent | b2ba94b146923573f4203d17474777bb4c30cea8 (diff) | |
download | samba-d1aeb2d1c3bfb87e9ab4079535867b40fb722fde.tar.gz samba-d1aeb2d1c3bfb87e9ab4079535867b40fb722fde.tar.bz2 samba-d1aeb2d1c3bfb87e9ab4079535867b40fb722fde.zip |
s3:test_net_registry_check: eliminate "local" keyword in shell
prefer to use function syntax with (...) to make variables local
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Tue Jun 26 00:32:11 CEST 2012 on sn-devel-104
-rwxr-xr-x | source3/script/tests/test_net_registry_check.sh | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/source3/script/tests/test_net_registry_check.sh b/source3/script/tests/test_net_registry_check.sh index 627f67c55a..ca8da76ffc 100755 --- a/source3/script/tests/test_net_registry_check.sh +++ b/source3/script/tests/test_net_registry_check.sh @@ -69,8 +69,8 @@ regchecknrepair() } test_simple() -{ - local ERRSTR="" +( + ERRSTR="" cp $REGORIG $REG regcheck @@ -78,7 +78,7 @@ test_simple() echo $ERRSTR return 1 } -} +) test_damage() { @@ -86,36 +86,36 @@ test_damage() } test_duplicate() -{ - local ERRSTR="" +( + ERRSTR="" $DBWRAP_TOOL $REG store 'HKLM/SOFTWARE' hex '02000000534F4654574152450053595354454D00' regchecknrepair "Duplicate subkeylist" 1 -} +) test_slashes() -{ - local ERRSTR="" +( + ERRSTR="" $DBWRAP_TOOL $REG store 'HKLM/SOFTWARE' hex '02000000534F4654574152450053595354454D00' regchecknrepair "Unnormal key:" 1 -} +) test_uppercase() -{ - local ERRSTR="" +( + ERRSTR="" $DBWRAP_TOOL $REG store 'HKLM\Software' hex '02000000534F4654574152450053595354454D00' regchecknrepair "Unnormal key:" 1 -} +) test_strangeletters() -{ - local ERRSTR="" +( + ERRSTR="" $DBWRAP_TOOL $REG store 'HKLM\SOFTWARE' hex '02000000534F4654574FABFABFABFAB354454D00' regchecknrepair "Conversion error: Incomplete multibyte sequence" 1 -} +) testit "simple" \ test_simple || \ |