Account for symlinks when setting up HGTMP.
authorJim Correia <jim.correia@pobox.com>
Sun, 25 Jan 2009 14:12:41 -0500
changeset 7730 5fb312ba29a8
parent 7729 dd08e1e0cea1
child 7731 737f274d1915
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.
tests/run-tests.py
--- 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