[ovs-dev] [PATCH] tests: daemon specific tests

Guru Shetty guru at ovn.org
Thu Jul 14 18:35:00 UTC 2016


On 12 July 2016 at 08:36, Alin Serdean <aserdean at cloudbasesolutions.com>
wrote:

> Testing out the named pipe implementation revealed a problem in
> "daemon --detach startup errors". If the daemon actually started nobody
> is stopping it.
> In the case of test failure kill the daemon.
>
> Signed-off-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
>
Thank you, applied!


> ---
>  tests/daemon.at | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tests/daemon.at b/tests/daemon.at
> index 8f88987..cf95cde 100644
> --- a/tests/daemon.at
> +++ b/tests/daemon.at
> @@ -153,7 +153,8 @@ AT_CLEANUP
>  AT_SETUP([daemon --detach startup errors])
>  AT_CAPTURE_FILE([pid])
>  OVSDB_INIT([db])
> -AT_CHECK([ovsdb-server --detach --no-chdir --pidfile="`pwd`"/pid
> --unixctl="`pwd`"/nonexistent/unixctl db], [1], [], [stderr])
> +AT_CHECK([ovsdb-server --detach --no-chdir --pidfile="`pwd`"/pid
> --unixctl="`pwd`"/nonexistent/unixctl db], [1], [], [stderr],
> +  [kill `cat pid`])
>  AT_CHECK([grep 'ovsdb-server: could not initialize control socket'
> stderr],
>    [0], [ignore], [])
>  AT_CHECK([test ! -s pid])
> --
> 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