[PATCH 3 of 3] tests: use an alias to make msys 'pwd' return paths with forward slashes

Mads Kiilerich mads at kiilerich.com
Sun Nov 20 18:57:35 CST 2011


# HG changeset patch
# User Mads Kiilerich <mads at kiilerich.com>
# Date 1321836560 -3600
# Node ID 90fbac2eea8cc2d2b7115da39a02d72decdabd8c
# Parent  fb39fd8f094552d60fcab4d0e43106b0e4cff8ef
tests: use an alias to make msys 'pwd' return paths with forward slashes

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -593,6 +593,8 @@
     f.close()
 
     script = []
+    if os.getenv('MSYSTEM'):
+        script.append('alias pwd="pwd -W"\n')
     for n, l in enumerate(t):
         if not l.endswith('\n'):
             l += '\n'


More information about the Mercurial-devel mailing list