summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/futex/functional
diff options
context:
space:
mode:
authorSeongJae Park <sj38.park@gmail.com>2016-10-02 11:02:18 +0900
committerShuah Khan <shuahkh@osg.samsung.com>2016-10-11 07:38:36 -0600
commitfecf861e765b2f9ce1a0487c3940afaed80ef7a8 (patch)
treed79eebc2e7d30e0b2f8899978d633139442028ff /tools/testing/selftests/futex/functional
parentf59c668c0b898bbeba7179cd34e38a53e2f86c42 (diff)
downloadop-kernel-dev-fecf861e765b2f9ce1a0487c3940afaed80ef7a8.zip
op-kernel-dev-fecf861e765b2f9ce1a0487c3940afaed80ef7a8.tar.gz
selftests/futex: Check ANSI terminal color support
Because test for color support of the running shell does not aware ANSI type terminals, it does not print colorful messages on some environemnt. This commit modifies the test to aware ANSI type terminal, too. Signed-off-by: SeongJae Park <sj38.park@gmail.com> Acked-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests/futex/functional')
-rwxr-xr-xtools/testing/selftests/futex/functional/run.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/futex/functional/run.sh b/tools/testing/selftests/futex/functional/run.sh
index e87dbe2..7ff002e 100755
--- a/tools/testing/selftests/futex/functional/run.sh
+++ b/tools/testing/selftests/futex/functional/run.sh
@@ -24,7 +24,7 @@
# Test for a color capable console
if [ -z "$USE_COLOR" ]; then
- tput setf 7
+ tput setf 7 || tput setaf 7
if [ $? -eq 0 ]; then
USE_COLOR=1
tput sgr0
OpenPOWER on IntegriCloud