testsuite.at: pwd for windows.
authorGurucharan Shetty <gshetty@nicira.com>
Fri, 18 Apr 2014 15:17:11 +0000 (08:17 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Tue, 22 Apr 2014 22:20:14 +0000 (15:20 -0700)
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@nicira.com>
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
tests/testsuite.at

index a569436..b045ae6 100644 (file)
@@ -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])