[ovs-dev] [PATCH] windows, tests: Strip EOL characters when passing them to tasklist

Alin Gabriel Serdean aserdean at ovn.org
Wed Sep 23 10:39:55 UTC 2020


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 <aserdean at 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



More information about the dev mailing list