[ovs-dev] [PATCH 09/11] testsuite.at: pwd for windows.

Gurucharan Shetty shettyg at nicira.com
Fri Apr 18 18:04:16 UTC 2014


On MinGW, "pwd -W" gives the present working directory
in the form of windows path (i.e C:/temp instead of /c/temp).
When we pass the directory path to daemons as arguments,
we should be passing it in the form of windows path.

Suggested-by: Ben Pfaff <blp at nicira.com>
Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
---
 tests/testsuite.at |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/testsuite.at b/tests/testsuite.at
index a569436..9cd90a3 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -41,6 +41,12 @@ seq () {
         set `expr $1 + ${3-1}` $2 $3
     done
 }
+
+if test "$IS_WIN32" = "yes"; then
+pwd () {
+    command pwd -W "$@"
+}
+fi
 ]
 m4_divert_pop([PREPARE_TESTS])
 
-- 
1.7.9.5




More information about the dev mailing list