From: Michael Adam Date: Wed, 28 Jan 2009 11:19:06 +0000 (+0100) Subject: s3:test: exit the net rpc registry tests when give_administrative_rights fails X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=5ec52659da8282752535d2ef9f7cb875fcaf93f2 s3:test: exit the net rpc registry tests when give_administrative_rights fails Michael --- diff --git a/source3/script/tests/test_net_registry.sh b/source3/script/tests/test_net_registry.sh index 5edcb061ee2c..e9f56a2cf2cc 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" \