# HG changeset patch # User Thomas Arendsen Hein # Date 2008-12-01 11:11:28 # Node ID 7900d240c3d83d5485d998b156ec27ed50c249b5 # Parent 4fd92687f331a38ddb38d3f71753ab92cd9cb174 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. diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -459,6 +459,7 @@ if not options.child: os.environ['LANG'] = os.environ['LC_ALL'] = 'C' os.environ['TZ'] = 'GMT' os.environ["EMAIL"] = "Foo Bar " +os.environ['CDPATH'] = '' TESTDIR = os.environ["TESTDIR"] = os.getcwd() HGTMP = os.environ['HGTMP'] = tempfile.mkdtemp('', 'hgtests.', options.tmpdir)