(testsuite) Set TERM=linux

The TERM=dummy setting causes backspaces (^H) to appear in stdout when running
from cron.  Changing to TERM=linux should fix the ^H's in stdout AND the bug of
`meta_on' or `meta_off' escape sequences in stdout, caused by a bug in
supposedly libreadline5:

http://old.nabble.com/-PATCH-:-fix-libreadline5-linked-applications-sending-meta_on-or-meta_off-to-stdout-td25557585.html

Steps to reproduce output of ^H with TERM=dummy:

    $ batch
    warning: commands will be executed using /bin/sh
    at> ./runUnit _known_hosts_real.exp --debug < /dev/tty40
    at> ^D

NOTE: You need to connect a terminal (< /dev/tty..) to the test suite
      when running from cron.  See also doc/testing.txt, "Running tests via
      cron".
This commit is contained in:
Freddy Vulto 2009-11-15 21:51:46 +01:00
parent 571e2fb7e1
commit 1bb351e227

View File

@ -16,7 +16,7 @@ export PS2='> '
export INPUTRC=$TESTDIR/config/inputrc
# Avoid escape junk at beginning of line from readline, see e.g.
# http://bugs.gentoo.org/246091
export TERM=dummy
export TERM=linux
# Ensure enough columns so expect doesn't have to care about line breaks
stty columns 150