s3:test: exit the net rpc registry tests when give_administrative_rights fails
authorMichael Adam <obnox@samba.org>
Wed, 28 Jan 2009 11:19:06 +0000 (12:19 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 28 Jan 2009 11:19:06 +0000 (12:19 +0100)
Michael

source3/script/tests/test_net_registry.sh

index 5edcb061ee2c0360941d8897cdc6bf7d404f0a96..e9f56a2cf2cc774dd16216d8e52dc74b5a4fcee4 100755 (executable)
@@ -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" \