All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 2/2] commands/file01: Fix "python3" match failure
Date: Thu, 26 Apr 2018 14:15:31 +0200	[thread overview]
Message-ID: <20180426121531.nntwhijmtmpwtiry@dell5510> (raw)
In-Reply-To: <1524725137-32739-2-git-send-email-yangx.jy@cn.fujitsu.com>

Hi Xiao,

> On some distros(e.g. RHEL6.9GA), we got the mismatched
> output by running 'file in.py':
> ----------------------------------------------
> in.py: a /usr/bin/env python3 script text executable
> ----------------------------------------------

> We just match both python and python3 to fix this issue.

> Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
> ---
>  testcases/commands/file/file01.sh | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

> diff --git a/testcases/commands/file/file01.sh b/testcases/commands/file/file01.sh
> index e04b32e..5a81b3b 100755
> --- a/testcases/commands/file/file01.sh
> +++ b/testcases/commands/file/file01.sh
> @@ -84,8 +84,8 @@ do_test()
>  	 7) file_test in.pl "[pP]erl script, ASCII text executable" \
>  			    "[pP]erl script text executable" \
>  			    "a /usr/bin/perl script text";;
> -	 8) file_test in.py "[pP]ython script, ASCII text executable" \
> -			    "[pP]ython script text executable";;
> +	 8) file_test in.py "[pP]ython3\{0,1\} script, ASCII text executable" \
This one isn't needed, as problem is with file-5.04, which use the latter one, but let's
keep it.
> +			    "[pP]ython3\{0,1\} script text executable";;
>  	 9) file_test in.m4 "M4 macro processor script, ASCII text" \
>  			    "ASCII M4 macro language pre-processor text";;
>  	10) file_test in "ELF .*-bit $TEST_ARCH executable, .*" \

Merged, thanks!


Kind regards,
Petr

  reply	other threads:[~2018-04-26 12:15 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-26  6:45 [LTP] [PATCH 1/2] *.py: Replace '#!/usr/bin/python3' with '#!/usr/bin/env python3' Xiao Yang
2018-04-26  6:45 ` [LTP] [PATCH 2/2] commands/file01: Fix "python3" match failure Xiao Yang
2018-04-26 12:15   ` Petr Vorel [this message]
2018-04-26  7:03 ` [LTP] [PATCH 1/2] *.py: Replace '#!/usr/bin/python3' with '#!/usr/bin/env python3' Xiao Yang
2018-04-26  8:06   ` Petr Vorel
2018-04-26  8:15     ` Xiao Yang
2018-04-26  8:16     ` Petr Vorel
2018-04-26  8:39       ` Xiao Yang
2018-04-26 10:54         ` Petr Vorel
2018-04-27  1:31           ` Xiao Yang
2018-04-27 14:08     ` Cyril Hrubis
2018-04-30  6:38       ` Petr Vorel
2018-05-02 15:37         ` Petr Vorel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180426121531.nntwhijmtmpwtiry@dell5510 \
    --to=pvorel@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.