From: Bart Van Assche <bvanassche@acm.org>
To: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>,
linux-block@vger.kernel.org
Cc: osandov@osandov.com
Subject: Re: [PATCH BLKTESTS 3/3] nvme/017: fix output format
Date: Tue, 19 Feb 2019 08:17:42 -0800 [thread overview]
Message-ID: <1550593062.31902.111.camel@acm.org> (raw)
In-Reply-To: <1550516022-16374-4-git-send-email-chaitanya.kulkarni@wdc.com>
On Mon, 2019-02-18 at 10:53 -0800, Chaitanya Kulkarni wrote:
> Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
> ---
> tests/nvme/017 | 5 ++++-
> tests/nvme/017.out | 11 -----------
> 2 files changed, 4 insertions(+), 12 deletions(-)
>
> diff --git a/tests/nvme/017 b/tests/nvme/017
> index 0b86bec..db87759 100755
> --- a/tests/nvme/017
> +++ b/tests/nvme/017
> @@ -37,7 +37,10 @@ test() {
> port="$(_create_nvmet_port "loop")"
> _add_nvmet_subsys_to_port "${port}" "${subsys_name}"
>
> - nvme discover -t loop | sed -r -e "s/portid: [0-9]+/portid: X/"
> + nvme discover -t loop | grep -q "${subsys_nqn}"
> + if [ $? -ne 0 ]; then
> + echo "nvme discover command failed"
> + fi
Hi Chaitanya,
Please keep the code style consistent with other blktests code and write that
if-condition as follows:
if ! nvme discover -t loop | grep -q "${subsys_nqn}"; then
echo "nvme discover command failed"
fi
Thanks,
Bart.
next prev parent reply other threads:[~2019-02-19 16:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-18 18:53 [PATCH BLKTESTS 0/3] nvme: fix output formats Chaitanya Kulkarni
2019-02-18 18:53 ` [PATCH BLKTESTS 2/3] nvme/016: fix output format Chaitanya Kulkarni
2019-02-18 18:53 ` [PATCH BLKTESTS 3/3] nvme/017: " Chaitanya Kulkarni
2019-02-19 16:17 ` Bart Van Assche [this message]
2019-02-19 20:06 ` Chaitanya Kulkarni
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=1550593062.31902.111.camel@acm.org \
--to=bvanassche@acm.org \
--cc=chaitanya.kulkarni@wdc.com \
--cc=linux-block@vger.kernel.org \
--cc=osandov@osandov.com \
/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