[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2a506ec3f7a7eadb142def0ff387d9185b60b46a
Freddy Vulto
freddy at blondy.prov
Wed Nov 18 22:48:33 UTC 2009
The following commit has been merged in the master branch:
commit 2a506ec3f7a7eadb142def0ff387d9185b60b46a
Author: Freddy Vulto <freddy at blondy.prov>
Date: Wed Nov 18 23:45:16 2009 +0100
(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.
diff --git a/doc/testing.txt b/doc/testing.txt
index b3138bb..f836c49 100644
--- a/doc/testing.txt
+++ b/doc/testing.txt
@@ -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
diff --git a/test/config/bashrc b/test/config/bashrc
index b3037d0..cc21db7 100644
--- a/test/config/bashrc
+++ b/test/config/bashrc
@@ -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
--
bash-completion
More information about the Bash-completion-commits
mailing list