]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
test: some cosmetics to net_registry tests.
authorMichael Adam <obnox@samba.org>
Tue, 1 Apr 2008 13:43:35 +0000 (15:43 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 1 Apr 2008 14:16:55 +0000 (16:16 +0200)
Michael

source/script/tests/test_net_registry.sh

index 82861bae108bd49405d02982bcb8a39b7f540723..3fac34e6412e76b423d19d1950493ea03489e74e 100755 (executable)
@@ -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