Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

SeongJae Park and committed by
Shuah Khan
fecf861e f59c668c

+2 -2
+1 -1
tools/testing/selftests/futex/functional/run.sh
··· 24 24 25 25 # Test for a color capable console 26 26 if [ -z "$USE_COLOR" ]; then 27 - tput setf 7 27 + tput setf 7 || tput setaf 7 28 28 if [ $? -eq 0 ]; then 29 29 USE_COLOR=1 30 30 tput sgr0
+1 -1
tools/testing/selftests/futex/run.sh
··· 23 23 24 24 # Test for a color capable shell and pass the result to the subdir scripts 25 25 USE_COLOR=0 26 - tput setf 7 26 + tput setf 7 || tput setaf 7 27 27 if [ $? -eq 0 ]; then 28 28 USE_COLOR=1 29 29 tput sgr0