From: Wanlong Gao <gaowanlong@cn.fujitsu.com>
To: Honggyu Kim <hong.gyu.kim@lge.com>, ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] ext4-new-features: fix syntax error in configure
Date: Mon, 28 Oct 2013 11:11:57 +0800 [thread overview]
Message-ID: <526DD5FD.3070104@cn.fujitsu.com> (raw)
In-Reply-To: <00e501ced38a$b4b19e90$1e14dbb0$@gyu.kim@lge.com>
On 10/28/2013 11:06 AM, Honggyu Kim wrote:
> In configure, string comparison is done using double assignment.
> /bin/sh doesn't allow to compare strings using "==".
> So "==" is modified to "=".
>
> Signed-off-by: Honggyu Kim <hong.gyu.kim@lge.com>
Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
> ---
> testcases/kernel/fs/ext4-new-features/configure | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/testcases/kernel/fs/ext4-new-features/configure b/testcases/kernel/fs/ext4-new-features/configure
> index 13f43f9..12849e5 100755
> --- a/testcases/kernel/fs/ext4-new-features/configure
> +++ b/testcases/kernel/fs/ext4-new-features/configure
> @@ -14,9 +14,9 @@ read EXT4_DEV
>
> echo "The partition is: $EXT4_DEV, Are you sure(Y/N)?"
> read RESULT
> -if [ "$RESULT" == "Y" ] || [ "$RESULT" == "y" ]; then
> +if [ "$RESULT" = "Y" ] || [ "$RESULT" = "y" ]; then
> echo "EXT4_DEV=$EXT4_DEV" > ./ext4-test-config
> -elif [ "$RESULT" == "N" ]; then
> +elif [ "$RESULT" = "N" ]; then
> echo "Give up specifing a partition!"
> else
> echo "Your input is wrong($RESULT)."
>
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2013-10-28 3:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-28 3:06 [LTP] [PATCH] ext4-new-features: fix syntax error in configure Honggyu Kim
2013-10-28 3:11 ` Wanlong Gao [this message]
2013-10-29 6:05 ` Wanlong Gao
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=526DD5FD.3070104@cn.fujitsu.com \
--to=gaowanlong@cn.fujitsu.com \
--cc=hong.gyu.kim@lge.com \
--cc=ltp-list@lists.sourceforge.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox