run-tests: always set $COLUMNS, fix running tests under emacs shell stable
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Mon, 23 Nov 2009 22:45:36 +0100
branchstable
changeset 9913 e3237af51def
parent 9911 58bdcab55bdc
child 9914 f139814d20b3
child 9921 b22ff29a3fbb
run-tests: always set $COLUMNS, fix running tests under emacs shell fix tests failure reported by Neal Becker.
tests/run-tests.py
tests/test-churn
tests/test-patchbomb
--- 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