Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
7729:dd08e1e0cea1 | 7730:5fb312ba29a8 |
---|---|
463 os.environ['TZ'] = 'GMT' | 463 os.environ['TZ'] = 'GMT' |
464 os.environ["EMAIL"] = "Foo Bar <foo.bar@example.com>" | 464 os.environ["EMAIL"] = "Foo Bar <foo.bar@example.com>" |
465 os.environ['CDPATH'] = '' | 465 os.environ['CDPATH'] = '' |
466 | 466 |
467 TESTDIR = os.environ["TESTDIR"] = os.getcwd() | 467 TESTDIR = os.environ["TESTDIR"] = os.getcwd() |
468 HGTMP = os.environ['HGTMP'] = tempfile.mkdtemp('', 'hgtests.', options.tmpdir) | 468 HGTMP = os.environ['HGTMP'] = os.path.realpath(tempfile.mkdtemp('', 'hgtests.', |
469 options.tmpdir)) | |
469 DAEMON_PIDS = None | 470 DAEMON_PIDS = None |
470 HGRCPATH = None | 471 HGRCPATH = None |
471 | 472 |
472 os.environ["HGEDITOR"] = sys.executable + ' -c "import sys; sys.exit(0)"' | 473 os.environ["HGEDITOR"] = sys.executable + ' -c "import sys; sys.exit(0)"' |
473 os.environ["HGMERGE"] = "internal:merge" | 474 os.environ["HGMERGE"] = "internal:merge" |