summaryrefslogtreecommitdiffstats
path: root/tests/ts/cal
diff options
context:
space:
mode:
authorKarel Zak2013-09-26 10:25:24 +0200
committerKarel Zak2013-09-26 10:25:24 +0200
commit99004bc87300fc70169e83422e15af613fc220e7 (patch)
tree3bb6b85a4c38bb6329c93b7c4ebc92b95fb8d8e1 /tests/ts/cal
parentlibblkid: Get rid of an unnecessary check (diff)
downloadkernel-qcow2-util-linux-99004bc87300fc70169e83422e15af613fc220e7.tar.gz
kernel-qcow2-util-linux-99004bc87300fc70169e83422e15af613fc220e7.tar.xz
kernel-qcow2-util-linux-99004bc87300fc70169e83422e15af613fc220e7.zip
tests: improve cal --color test
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/cal')
-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 f10c66fa1..12a48b3bf 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" "$*" )