On Windows the PID file doesn't gets deleted on process exit.
Signed-off-by: Paul-Daniel Boca <[email protected]>
---
tests/daemon-py.at | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/tests/daemon-py.at b/tests/daemon-py.at
index e59c11d..7578622 100644
--- a/tests/daemon-py.at
+++ b/tests/daemon-py.at
@@ -197,7 +197,9 @@ m4_define([DAEMON_DETACH_ERRORS_PYN],
AT_CHECK([$3 $srcdir/test-daemon.py --pidfile=`pwd`/pid --detach --bail],
[1], [], [stderr])
AT_CHECK([grep 'test-daemon.py: exiting after daemonize_start() as
requested' stderr],
[0], [ignore], [])
- AT_CHECK([test ! -s pid])
+ if test "$IS_WIN32" != "yes"; then
+ AT_CHECK([test ! -s pid])
+ fi
AT_CLEANUP])
DAEMON_DETACH_ERRORS_PYN([Python2], [$HAVE_PYTHON], [$PYTHON])
@@ -210,7 +212,9 @@ m4_define([DAEMON_DETACH_MONITOR_ERRORS_PYN],
AT_CHECK([$3 $srcdir/test-daemon.py --pidfile=`pwd`/pid --detach --monitor
--bail], [1], [], [stderr])
AT_CHECK([grep 'test-daemon.py: exiting after daemonize_start() as
requested' stderr],
[0], [ignore], [])
- AT_CHECK([test ! -s pid])
+ if test "$IS_WIN32" != "yes"; then
+ AT_CHECK([test ! -s pid])
+ fi
AT_CLEANUP])
DAEMON_DETACH_MONITOR_ERRORS_PYN([Python2], [$HAVE_PYTHON], [$PYTHON])
--
2.7.2.windows.1
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev