From: Karel Zak Date: Thu, 26 Sep 2013 08:25:24 +0000 (+0200) Subject: tests: improve cal --color test X-Git-Tag: v2.24-rc1~51 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=99004bc87300fc70169e83422e15af613fc220e7;p=thirdparty%2Futil-linux.git tests: improve cal --color test Signed-off-by: Karel Zak --- diff --git a/tests/ts/cal/color b/tests/ts/cal/color index f10c66fa10..12a48b3bfa 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" "$*" )