[ovs-dev] [PATCH 2/3] Remove the windows service in case it failed to start

Gurucharan Shetty shettyg at nicira.com
Tue Jun 23 14:41:25 UTC 2015


On Mon, Jun 22, 2015 at 3:45 PM, Alin Serdean
<aserdean at cloudbasesolutions.com> wrote:
> 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 at cloudbasesolutions.com>
Applied, thanks.

> ---
>  tests/daemon.at | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/daemon.at b/tests/daemon.at
> index dd7a3f4..51d56c5 100644
> --- a/tests/daemon.at
> +++ b/tests/daemon.at
> @@ -172,7 +172,7 @@ AT_CHECK([sc create ovsdb-server binpath="$abs_path/ovsdb-server `pwd`/db --log-
>  [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])
> --
> 1.9.5.msysgit.0
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev



More information about the dev mailing list