Mercurial > hg
comparison tests/run-tests.py @ 7448:7900d240c3d8
Fix non-empty $CDPATH causing failed tests.
If CDPATH contains '.', every cd command prints the target path,
which causes additional output in tests and makes them fail.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Mon, 01 Dec 2008 12:11:28 +0100 |
parents | e47dab64be8d |
children | 0a65a1dd7894 |
comparison
equal
deleted
inserted
replaced
7447:4fd92687f331 | 7448:7900d240c3d8 |
---|---|
457 # Reset some environment variables to well-known values so that | 457 # Reset some environment variables to well-known values so that |
458 # the tests produce repeatable output. | 458 # the tests produce repeatable output. |
459 os.environ['LANG'] = os.environ['LC_ALL'] = 'C' | 459 os.environ['LANG'] = os.environ['LC_ALL'] = 'C' |
460 os.environ['TZ'] = 'GMT' | 460 os.environ['TZ'] = 'GMT' |
461 os.environ["EMAIL"] = "Foo Bar <foo.bar@example.com>" | 461 os.environ["EMAIL"] = "Foo Bar <foo.bar@example.com>" |
462 os.environ['CDPATH'] = '' | |
462 | 463 |
463 TESTDIR = os.environ["TESTDIR"] = os.getcwd() | 464 TESTDIR = os.environ["TESTDIR"] = os.getcwd() |
464 HGTMP = os.environ['HGTMP'] = tempfile.mkdtemp('', 'hgtests.', options.tmpdir) | 465 HGTMP = os.environ['HGTMP'] = tempfile.mkdtemp('', 'hgtests.', options.tmpdir) |
465 DAEMON_PIDS = None | 466 DAEMON_PIDS = None |
466 HGRCPATH = None | 467 HGRCPATH = None |