(testsuite) Set TERM=dummy only for non-cron

Err, TERM=linux also causes errors when tests are run via cron.
Reset TERM=dummy.
Workaround is to do a CRON=running from within the cron job and only set
TERM=dummy when not run via cron.
This commit is contained in:
Freddy Vulto 2009-11-18 23:45:16 +01:00
parent 2888874fa9
commit 2a506ec3f7
2 changed files with 4 additions and 3 deletions

View File

@ -129,6 +129,7 @@ test-run fails.
set -e # Exit if simple command fails
set -u # Error if variable is undefined
CRON=running
LOG=/tmp/bash-completion.log~
# Retrieve latest sources

View File

@ -14,9 +14,9 @@ export PS1='$(wd=$(pwd); echo ${wd#$TESTDIR}/)@'
export PS2='> '
# Configure readline
export INPUTRC=$TESTDIR/config/inputrc
# Avoid escape junk at beginning of line from readline, see e.g.
# http://bugs.gentoo.org/246091
export TERM=linux
# When not running via cron, avoid escape junk at beginning of line from
# readline, see e.g. http://bugs.gentoo.org/246091
[ "$CRON" ] || export TERM=dummy
# Ensure enough columns so expect doesn't have to care about line breaks
stty columns 150