lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 11 Oct 2016 08:15:14 +0900
From:   SeongJae Park <sj38.park@...il.com>
To:     shuah@...nel.org, dvhart@...ux.intel.com
Cc:     linux-kselftest@...r.kernel.org,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        SeongJae Park <sj38.park@...il.com>
Subject: Re: [PATCH] selftests/futex: Check ANSI terminal color support

Hi,


Shuah, may I ask your comment about this patch?


Thanks,
SeongJae Park

On Sun, Oct 2, 2016 at 11:02 AM, SeongJae Park <sj38.park@...il.com> wrote:
> 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@...il.com>
> ---
>  tools/testing/selftests/futex/functional/run.sh | 2 +-
>  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 @@
>
>  # 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
> 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 @@
>
>  # Test for a color capable shell and pass the result to the subdir scripts
>  USE_COLOR=0
> -tput setf 7
> +tput setf 7 || tput setaf 7
>  if [ $? -eq 0 ]; then
>      USE_COLOR=1
>      tput sgr0
> --
> 2.10.0
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ