run-tests: always set $COLUMNS, fix running tests under emacs shell
fix tests failure reported by Neal Becker.
--- 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