summaryrefslogtreecommitdiff
path: root/source3/script
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-01-28 12:19:06 +0100
committerMichael Adam <obnox@samba.org>2009-01-28 12:19:06 +0100
commit5ec52659da8282752535d2ef9f7cb875fcaf93f2 (patch)
tree21ed8fd6c2655be6aa72c7a16cf79dcf8538da27 /source3/script
parent5da211b658164a6a585e9e77b7017a62ba16cf51 (diff)
downloadsamba-5ec52659da8282752535d2ef9f7cb875fcaf93f2.tar.gz
samba-5ec52659da8282752535d2ef9f7cb875fcaf93f2.tar.bz2
samba-5ec52659da8282752535d2ef9f7cb875fcaf93f2.zip
s3:test: exit the net rpc registry tests when give_administrative_rights fails
Michael
Diffstat (limited to 'source3/script')
-rwxr-xr-xsource3/script/tests/test_net_registry.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/script/tests/test_net_registry.sh b/source3/script/tests/test_net_registry.sh
index 5edcb061ee..e9f56a2cf2 100755
--- 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" \