summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-01 15:43:35 +0200
committerMichael Adam <obnox@samba.org>2008-04-01 16:16:55 +0200
commitfd64e6de8c708674f6e406171f82ccb2a7c45390 (patch)
tree77a20e74f98345587ea6805b53f4068ab2a22e3f
parent4a99bce73633db42dff632d209e379f45d9aec22 (diff)
downloadsamba-fd64e6de8c708674f6e406171f82ccb2a7c45390.tar.gz
samba-fd64e6de8c708674f6e406171f82ccb2a7c45390.tar.bz2
samba-fd64e6de8c708674f6e406171f82ccb2a7c45390.zip
test: some cosmetics to net_registry tests.
Michael (This used to be commit dba9db5ae6581df18591eebd19d3649bed0d9367)
-rwxr-xr-xsource3/script/tests/test_net_registry.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/script/tests/test_net_registry.sh b/source3/script/tests/test_net_registry.sh
index 82861bae10..3fac34e641 100755
--- a/source3/script/tests/test_net_registry.sh
+++ b/source3/script/tests/test_net_registry.sh
@@ -30,6 +30,7 @@ test_enumerate_nonexisting()
{
KEY="$1"
${NETREG} enumerate ${KEY}
+
if test "x$?" = "x0" ; then
echo "ERROR: enumerate succeeded with key '${KEY}'"
false
@@ -53,13 +54,14 @@ test_create_existing()
{
KEY="HKLM"
EXPECTED="createkey opened existing ${KEY}"
+
OUTPUT=`${NETREG} createkey ${KEY}`
if test "x$?" = "x0" ; then
if test "$OUTPUT" = "$EXPECTED" ; then
true
else
echo "got '$OUTPUT', expected '$EXPECTED'"
- false;
+ false
fi
else
printf "%s\n" "$OUTPUT"
@@ -112,7 +114,6 @@ test_deletekey()
SUBKEY=`basename ${KEY}`
OUTPUT=`test_createkey "${KEY}"`
-
if test "x$?" != "x0" ; then
printf "%s\n" "${OUTPUT}"
false