In case the ovsdb-server failed to start, the defined service was not
properly cleaned.
Add a run-if-false command in case the service failed to start.
Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
[0], [[[SC]] CreateService SUCCESS
])
-AT_CHECK([sc start ovsdb-server], [0], [ignore])
+AT_CHECK([sc start ovsdb-server], [0], [ignore], [ignore], [sc delete ovsdb-server])
OVS_WAIT_UNTIL([test -s pid])
OVS_WAIT_UNTIL([sc query ovsdb-server | grep STATE | grep RUNNING > /dev/null 2>&1])
AT_CHECK([kill -0 `cat pid`], [0], [ignore])