[ovs-dev] [PATCH V2 3/4] tests: Modified OVS_APP_EXIT_AND_WAIT_BY_TARGET to work on windows too
Paul Boca
pboca at cloudbasesolutions.com
Wed Jun 1 11:46:43 UTC 2016
On Windows the CTL file doesn't contain the PID in it's name
Signed-off-by: Paul-Daniel Boca <pboca at cloudbasesolutions.com>
---
tests/ovs-macros.at | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tests/ovs-macros.at b/tests/ovs-macros.at
index e5710a0..470c31c 100644
--- a/tests/ovs-macros.at
+++ b/tests/ovs-macros.at
@@ -145,7 +145,11 @@ dnl Ask the daemon named DAEMON to exit, via ovs-appctl (using the target
dnl argument), and then waits for it to exit.
m4_define([OVS_APP_EXIT_AND_WAIT_BY_TARGET],
[TMPPID=`cat "$OVS_RUNDIR"/$1.pid 2>/dev/null`
- AT_CHECK([ovs-appctl --target=$OVS_RUNDIR/ovsdb-server.$TMPPID.ctl exit])
+ if test "$IS_WIN32" = "yes"; then
+ AT_CHECK([ovs-appctl --target=$OVS_RUNDIR/ovsdb-server.ctl exit])
+ else
+ AT_CHECK([ovs-appctl --target=$OVS_RUNDIR/ovsdb-server.$TMPPID.ctl exit])
+ fi
OVS_WAIT_WHILE([kill -0 $TMPPID 2>/dev/null])])
dnl on_exit "COMMAND"
--
2.7.2.windows.1
More information about the dev
mailing list