(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:
parent
2888874fa9
commit
2a506ec3f7
@ -129,6 +129,7 @@ test-run fails.
|
|||||||
set -e # Exit if simple command fails
|
set -e # Exit if simple command fails
|
||||||
set -u # Error if variable is undefined
|
set -u # Error if variable is undefined
|
||||||
|
|
||||||
|
CRON=running
|
||||||
LOG=/tmp/bash-completion.log~
|
LOG=/tmp/bash-completion.log~
|
||||||
|
|
||||||
# Retrieve latest sources
|
# Retrieve latest sources
|
||||||
|
@ -14,9 +14,9 @@ export PS1='$(wd=$(pwd); echo ${wd#$TESTDIR}/)@'
|
|||||||
export PS2='> '
|
export PS2='> '
|
||||||
# Configure readline
|
# Configure readline
|
||||||
export INPUTRC=$TESTDIR/config/inputrc
|
export INPUTRC=$TESTDIR/config/inputrc
|
||||||
# Avoid escape junk at beginning of line from readline, see e.g.
|
# When not running via cron, avoid escape junk at beginning of line from
|
||||||
# http://bugs.gentoo.org/246091
|
# readline, see e.g. http://bugs.gentoo.org/246091
|
||||||
export TERM=linux
|
[ "$CRON" ] || export TERM=dummy
|
||||||
# Ensure enough columns so expect doesn't have to care about line breaks
|
# Ensure enough columns so expect doesn't have to care about line breaks
|
||||||
stty columns 150
|
stty columns 150
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user