Commit fecf861e authored by SeongJae Park's avatar SeongJae Park Committed by Shuah Khan

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: default avatarSeongJae Park <sj38.park@gmail.com>
Acked-by: default avatarDarren Hart <dvhart@linux.intel.com>
Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
parent f59c668c
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
# Test for a color capable console # Test for a color capable console
if [ -z "$USE_COLOR" ]; then if [ -z "$USE_COLOR" ]; then
tput setf 7 tput setf 7 || tput setaf 7
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
USE_COLOR=1 USE_COLOR=1
tput sgr0 tput sgr0
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
# Test for a color capable shell and pass the result to the subdir scripts # Test for a color capable shell and pass the result to the subdir scripts
USE_COLOR=0 USE_COLOR=0
tput setf 7 tput setf 7 || tput setaf 7
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
USE_COLOR=1 USE_COLOR=1
tput sgr0 tput sgr0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment