diff options
author | Karel Zak <kzak@redhat.com> | 2013-09-26 10:25:24 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2013-09-26 10:25:24 +0200 |
commit | 99004bc87300fc70169e83422e15af613fc220e7 (patch) | |
tree | 3bb6b85a4c38bb6329c93b7c4ebc92b95fb8d8e1 /tests | |
parent | 412d542f6e9b875931fb05c8dbc06dbf5070046e (diff) | |
download | util-linux-99004bc87300fc70169e83422e15af613fc220e7.tar.gz |
tests: improve cal --color test
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/ts/cal/color | 3 |
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" "$*" ) |