Mercurial > hg
diff tests/run-tests.py @ 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 | a343cd25e425 |
children | 660c8dd44060 |
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