expected test failures?
Neal Becker
ndbecker2 at gmail.com
Fri Nov 20 13:36:34 CST 2009
On Friday 20 November 2009, Benoit Boissinot wrote:
> On Fri, Nov 20, 2009 at 01:56:11PM -0500, Neal Becker wrote:
> > On Friday 20 November 2009, Benoit Boissinot wrote:
> > > On Fri, Nov 20, 2009 at 11:52:37AM -0500, Neal Becker wrote:
> > > > On Friday 20 November 2009, Benoit Boissinot wrote:
> > > > > On Fri, Nov 20, 2009 at 5:01 PM, Neal Becker <ndbecker2 at gmail.com>
> >
> > wrote:
> > > > > > http://fpaste.org/O9WL/
> > > > >
> > > > > Does echo $COLUMN return something?
> > > > >
> > > > > thanks,
> > > > >
> > > > > Benoit
> > > >
> > > > No. Tests fail when run under emacs shell. Tests passed when run
> > > > under konsole. Neither has $COLUMN set. This is rediculous!
> > >
> > > does the following fixes it?
> > >
> > > diff --git a/tests/run-tests.py b/tests/run-tests.py
> > > --- a/tests/run-tests.py
> > > +++ b/tests/run-tests.py
> > > @@ -785,6 +785,7 @@
> > > os.environ['TZ'] = 'GMT'
> > > os.environ["EMAIL"] = "Foo Bar <foo.bar at example.com>"
> > > os.environ['CDPATH'] = ''
> > > + os.environ['COLUMN'] = '80'
> > >
> > > global TESTDIR, HGTMP, INST, BINDIR, PYTHONDIR, COVERAGE_FILE
> > > TESTDIR = os.environ["TESTDIR"] = os.getcwd()
> >
> > Yes (COLUMNS) fixes it.
> >
> > Does it have to be so fragile?
>
> It's not fragile, we just need to have fixed settings when testing the
> output (like using LANG=C). But it's good that it adapts to the terminal
> width.
>
> So, was emacs having $COLUMNS set?
>
> regards,
>
> Benoit
>
Yes, it was 122
More information about the Mercurial-devel
mailing list