changeset 9913:e3237af51def stable

run-tests: always set $COLUMNS, fix running tests under emacs shell fix tests failure reported by Neal Becker.
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Mon, 23 Nov 2009 22:45:36 +0100
parents 58bdcab55bdc
children f139814d20b3 b22ff29a3fbb
files tests/run-tests.py tests/test-churn tests/test-patchbomb
diffstat 3 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Mon Nov 23 22:08:59 2009 +0100
+++ b/tests/run-tests.py	Mon Nov 23 22:45:36 2009 +0100
@@ -785,6 +785,7 @@
     os.environ['TZ'] = 'GMT'
     os.environ["EMAIL"] = "Foo Bar <foo.bar@example.com>"
     os.environ['CDPATH'] = ''
+    os.environ['COLUMNS'] = '80'
 
     global TESTDIR, HGTMP, INST, BINDIR, PYTHONDIR, COVERAGE_FILE
     TESTDIR = os.environ["TESTDIR"] = os.getcwd()
--- a/tests/test-churn	Mon Nov 23 22:08:59 2009 +0100
+++ b/tests/test-churn	Mon Nov 23 22:45:36 2009 +0100
@@ -3,8 +3,6 @@
 echo "[extensions]" >> $HGRCPATH
 echo "churn=" >> $HGRCPATH
 
-COLUMNS=80; export COLUMNS
-
 echo % create test repository
 hg init repo
 cd repo
--- a/tests/test-patchbomb	Mon Nov 23 22:08:59 2009 +0100
+++ b/tests/test-patchbomb	Mon Nov 23 22:45:36 2009 +0100
@@ -12,8 +12,6 @@
 echo "[extensions]" >> $HGRCPATH
 echo "patchbomb=" >> $HGRCPATH
 
-COLUMNS=80; export COLUMNS
-
 hg init t
 cd t
 echo a > a