changeset 7730:5fb312ba29a8

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 substituations with the actual path work as expected.
author Jim Correia <jim.correia@pobox.com>
date Sun, 25 Jan 2009 14:12:41 -0500
parents dd08e1e0cea1
children 737f274d1915
files tests/run-tests.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Sun Jan 25 13:49:15 2009 -0500
+++ b/tests/run-tests.py	Sun Jan 25 14:12:41 2009 -0500
@@ -465,7 +465,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