[ovs-dev] [PATCH] ovs-vsctl.at: Fix a ssl unit test on Windows.

Gurucharan Shetty shettyg at nicira.com
Mon Aug 24 14:45:22 UTC 2015


In Windows, when we do a 'pwd', it calls 'pwd -W' to give
a Windows path. ovs-pki utility does not understand Windows
path style, so the test fails. This commit prevents the
overloading of 'pwd' command to let ovs-pki generate the
certificates correctly.

Reported-by: Ben Pfaff <blp at nicira.com>
Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
---
 tests/ovs-vsctl.at |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/ovs-vsctl.at b/tests/ovs-vsctl.at
index fef7b88..5edb248 100644
--- a/tests/ovs-vsctl.at
+++ b/tests/ovs-vsctl.at
@@ -1313,7 +1313,7 @@ AT_CLEANUP
 AT_SETUP([peer ca cert])
 AT_KEYWORDS([ovs-vsctl ssl])
 AT_SKIP_IF([test "$HAVE_OPENSSL" = no])
-PKIDIR=`pwd`
+PKIDIR=`command pwd`
 OVS_PKI="sh $abs_top_srcdir/utilities/ovs-pki.in --dir=$PKIDIR/pki --log=$PKIDIR/ovs-pki.log"
 $OVS_PKI -B 1024 init && \
 $OVS_PKI -B 1024 req+sign vsctl switch && \
-- 
1.7.9.5




More information about the dev mailing list