test suite crash with TERM=dumb

Tomi Ollila tomi.ollila at iki.fi
Mon Jan 21 06:44:27 PST 2013


On Mon, Jan 21 2013, David Bremner <david at tethera.net> wrote:

> In 0.15 (or current master) try running 
>
>   % TERM=dump make test
>
> At least for me and the Debian build daemons, this causes the run to end
> with
>
>   PASS   Show message: json, utf-8
>   FATAL: Unexpected exit with code 1
>   make: *** [test] Error 124
>
> This is much worse than a test failure since it causes the build to exit
> with non-zero status.
>
> I have temporarily disabled running the test suite in the debian
> packaging, but this is obviously not a good permanent solution.
>
> Apparently the problem is on the line 
>
>  TERM=$ORIGINAL_TERM dtach -n "$TEST_TMPDIR/emacs-dtach-socket.$$" 
>
> It would be easy to hardcode the TERM for dtach, but I'm not sure if
> there is some advantage to testing with the user's actual term? Also, I
> guess we'd have to be careful the chosen terminal type is portable.

For user it only matters when/if one wants to attach to the dtach'd
terminal (i.e. rarely). Then if the terminal chosen is knows subset of
the control sequences any of the terminals users might use then it is not
much of a problem -- the terminal just doesn't work optimally, display
colors or something.

In your tests you could just run `TERM=xterm make test` (and forget the
issue >;)

> d

Tomi


More information about the notmuch mailing list