]> git.proxmox.com Git - ovs.git/commitdiff
tests: daemon specific tests
authorAlin Serdean <aserdean@cloudbasesolutions.com>
Tue, 12 Jul 2016 15:36:02 +0000 (15:36 +0000)
committerGurucharan Shetty <guru@ovn.org>
Thu, 14 Jul 2016 18:34:20 +0000 (11:34 -0700)
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>
tests/daemon.at

index 8f8898729f55080eff87e50f6023a118371fca64..cf95cdef00cf93006674e4e910d2ac997f672eaf 100644 (file)
@@ -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])