diff options
author | Alin Serdean <aserdean@cloudbasesolutions.com> | 2016-07-12 15:36:02 +0000 |
---|---|---|
committer | Gurucharan Shetty <guru@ovn.org> | 2016-07-14 11:34:20 -0700 |
commit | 2926d0524d9a41a6c8fafd777e91ad949d871b89 (patch) | |
tree | 0cb97331e31c147cfaa6765be848d0381d8994c3 /tests | |
parent | 3eabffef8831836889806ab88cd2081b1b8a9e92 (diff) | |
download | openvswitch-2926d0524d9a41a6c8fafd777e91ad949d871b89.tar.gz |
tests: daemon specific tests
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@cloudbasesolutions.com>
Acked-by: Paul Boca <pboca@cloudbasesolutions.com>
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/daemon.at | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/daemon.at b/tests/daemon.at index 8f8898729..cf95cdef0 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]) |