run-tests: compare absolute paths in _checkhglib stable
authorIdan Kamara <idankk86@gmail.com>
Sat, 07 May 2011 20:56:43 +0300
branchstable
changeset 934 cf241f12e977
parent 932 eb562ea207c3
child 935 60045f152c3b
run-tests: compare absolute paths in _checkhglib [ original upstream message ]
tests/run-tests.py
--- a/tests/run-tests.py	Thu May 05 20:04:49 2011 +0200
+++ b/tests/run-tests.py	Sat May 07 20:56:43 2011 +0300
@@ -902,7 +902,7 @@
     the one we expect it to be.  If not, print a warning to stderr."""
     expecthg = os.path.join(PYTHONDIR, 'mercurial')
     actualhg = _gethgpath()
-    if actualhg != expecthg:
+    if os.path.abspath(actualhg) != os.path.abspath(expecthg):
         sys.stderr.write('warning: %s with unexpected mercurial lib: %s\n'
                          '         (expected %s)\n'
                          % (verb, actualhg, expecthg))