mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
test: some cosmetics to net_registry tests.
Michael
(This used to be commit dba9db5ae6
)
This commit is contained in:
parent
4a99bce736
commit
fd64e6de8c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user