diff options
author | SeongJae Park <sj38.park@gmail.com> | 2016-10-01 22:02:18 -0400 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2016-10-11 09:38:36 -0400 |
commit | fecf861e765b2f9ce1a0487c3940afaed80ef7a8 (patch) | |
tree | d79eebc2e7d30e0b2f8899978d633139442028ff | |
parent | f59c668c0b898bbeba7179cd34e38a53e2f86c42 (diff) |
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>
-rwxr-xr-x | tools/testing/selftests/futex/functional/run.sh | 2 | ||||
-rwxr-xr-x | tools/testing/selftests/futex/run.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/futex/functional/run.sh b/tools/testing/selftests/futex/functional/run.sh index e87dbe2a0b0d..7ff002eed624 100755 --- a/tools/testing/selftests/futex/functional/run.sh +++ b/tools/testing/selftests/futex/functional/run.sh | |||
@@ -24,7 +24,7 @@ | |||
24 | 24 | ||
25 | # Test for a color capable console | 25 | # Test for a color capable console |
26 | if [ -z "$USE_COLOR" ]; then | 26 | if [ -z "$USE_COLOR" ]; then |
27 | tput setf 7 | 27 | tput setf 7 || tput setaf 7 |
28 | if [ $? -eq 0 ]; then | 28 | if [ $? -eq 0 ]; then |
29 | USE_COLOR=1 | 29 | USE_COLOR=1 |
30 | tput sgr0 | 30 | tput sgr0 |
diff --git a/tools/testing/selftests/futex/run.sh b/tools/testing/selftests/futex/run.sh index 4126312ad64e..88bcb1767362 100755 --- a/tools/testing/selftests/futex/run.sh +++ b/tools/testing/selftests/futex/run.sh | |||
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
24 | # Test for a color capable shell and pass the result to the subdir scripts | 24 | # Test for a color capable shell and pass the result to the subdir scripts |
25 | USE_COLOR=0 | 25 | USE_COLOR=0 |
26 | tput setf 7 | 26 | tput setf 7 || tput setaf 7 |
27 | if [ $? -eq 0 ]; then | 27 | if [ $? -eq 0 ]; then |
28 | USE_COLOR=1 | 28 | USE_COLOR=1 |
29 | tput sgr0 | 29 | tput sgr0 |