[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:03:11 CST 2009


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

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

diff -r 43cfbb21f04d -r 3c8bf03d8706 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:01:28 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