summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2013-09-26 10:25:24 +0200
committerKarel Zak <kzak@redhat.com>2013-09-26 10:25:24 +0200
commit99004bc87300fc70169e83422e15af613fc220e7 (patch)
tree3bb6b85a4c38bb6329c93b7c4ebc92b95fb8d8e1 /tests
parent412d542f6e9b875931fb05c8dbc06dbf5070046e (diff)
downloadutil-linux-99004bc87300fc70169e83422e15af613fc220e7.tar.gz
tests: improve cal --color test
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/ts/cal/color3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ts/cal/color b/tests/ts/cal/color
index f10c66fa..12a48b3b 100755
--- a/tests/ts/cal/color
+++ b/tests/ts/cal/color
@@ -20,6 +20,9 @@ TS_DESC="color"
. $TS_TOPDIR/functions.sh
ts_init "$*"
+# --color output depends on terminal type
+export TERM=linux
+
set -o pipefail
USETERM=$( ts_has_option "useterm" "$*" )