[PATCH] Fix for test-audit-path failure on Mac OS X - symlinks not expanded in HGTMP

Jim Correia jim.correia at gmail.com
Sat Jan 24 14:14:57 CST 2009


Revised patch. The code is the same, but several typos in the commit  
message have been fixed.

- Jim

# HG changeset patch
# User Jim Correia <jim.correia at pobox.com>
# Date 1232827815 18000
# Node ID 9dfe0135bc129eee5dd1b7526639129ff44fbbd6
# Parent  43cfbb21f04dad85faa977588b7597d74cacfc4b
Account for symlinks when setting up HGTMP.

On Mac OS X, several top-level directories are actually symlinks into
/private. When setting up HGTMP, expand the symlinks so that later
comparisons to or substitutions with the actual path work as expected.

diff -r 43cfbb21f04d -r 9dfe0135bc12 tests/run-tests.py
--- a/tests/run-tests.py	Wed Jan 21 14:14:56 2009 -0600
+++ b/tests/run-tests.py	Sat Jan 24 15:10:15 2009 -0500
@@ -462,7 +462,8 @@
os.environ['CDPATH'] = ''

TESTDIR = os.environ["TESTDIR"] = os.getcwd()
-HGTMP = os.environ['HGTMP'] = tempfile.mkdtemp('', 'hgtests.',  
options.tmpdir)
+HGTMP = os.environ['HGTMP'] = os.path.realpath(tempfile.mkdtemp('',  
'hgtests.',
+                                               options.tmpdir))
DAEMON_PIDS = None
HGRCPATH = None




More information about the Mercurial-devel mailing list