When running OVSDB cluster tests on Windows not all the ovsdb
processes are terminated.
Strip carriage return and newline of the arguments passed to the kill
command because they will cause problems when passing them to tasklist
and taskkill.

Signed-off-by: Alin Gabriel Serdean <aserd...@ovn.org>
---
 tests/ovs-macros.at | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/ovs-macros.at b/tests/ovs-macros.at
index b1f666f4e..66545da57 100644
--- a/tests/ovs-macros.at
+++ b/tests/ovs-macros.at
@@ -106,6 +106,7 @@ if test "$IS_WIN32" = "yes"; then
         signal=
         retval=0
         for arg; do
+            arg=$(echo $arg | tr -d '\n\r')
             case $arg in
             -*) signal=$arg ;;
             [1-9][0-9]*)
-- 
2.27.0.windows.1

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to