Fix non-empty $CDPATH causing failed tests.
authorThomas Arendsen Hein <thomas@intevation.de>
Mon, 01 Dec 2008 12:11:28 +0100
changeset 7448 7900d240c3d8
parent 7447 4fd92687f331
child 7449 f848d7f96195
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.
tests/run-tests.py
--- a/tests/run-tests.py	Sun Nov 30 22:51:42 2008 +0100
+++ b/tests/run-tests.py	Mon Dec 01 12:11:28 2008 +0100
@@ -459,6 +459,7 @@
 os.environ['LANG'] = os.environ['LC_ALL'] = 'C'
 os.environ['TZ'] = 'GMT'
 os.environ["EMAIL"] = "Foo Bar <foo.bar@example.com>"
+os.environ['CDPATH'] = ''
 
 TESTDIR = os.environ["TESTDIR"] = os.getcwd()
 HGTMP = os.environ['HGTMP'] = tempfile.mkdtemp('', 'hgtests.', options.tmpdir)