git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5da211b
)
s3:test: exit the net rpc registry tests when give_administrative_rights fails
author
Michael Adam
<obnox@samba.org>
Wed, 28 Jan 2009 11:19:06 +0000
(12:19 +0100)
committer
Michael Adam
<obnox@samba.org>
Wed, 28 Jan 2009 11:19:06 +0000
(12:19 +0100)
Michael
source3/script/tests/test_net_registry.sh
patch
|
blob
|
history
diff --git
a/source3/script/tests/test_net_registry.sh
b/source3/script/tests/test_net_registry.sh
index 5edcb061ee2c0360941d8897cdc6bf7d404f0a96..e9f56a2cf2cc774dd16216d8e52dc74b5a4fcee4 100755
(executable)
--- a/
source3/script/tests/test_net_registry.sh
+++ b/
source3/script/tests/test_net_registry.sh
@@
-361,8
+361,11
@@
take_administrative_rights()
if test "x${RPC}" = "xrpc" ; then
testit "giving user ${USERNAME} administrative rights" \
- give_administrative_rights || \
- failed=`expr $failed + 1`
+ give_administrative_rights
+ if [ "x$?" != "x0" ] ; then
+ failed=`expr $failed + 1`
+ testok $0 $failed
+ fi
fi
testit "enumerate HKLM" \