All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
To: linux-block@vger.kernel.org
Cc: osandov@osandov.com, Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Subject: [PATCH V2 6/8] nvme/026: use consistent coding style
Date: Wed, 20 Feb 2019 20:42:46 -0800	[thread overview]
Message-ID: <20190221044248.11096-7-chaitanya.kulkarni@wdc.com> (raw)
In-Reply-To: <20190221044248.11096-1-chaitanya.kulkarni@wdc.com>

---
 tests/nvme/026     | 14 +++++---------
 tests/nvme/026.out |  1 -
 2 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/tests/nvme/026 b/tests/nvme/026
index f915579..ae37aa7 100755
--- a/tests/nvme/026
+++ b/tests/nvme/026
@@ -38,11 +38,11 @@ test() {
 	cat "/sys/block/${nvmedev}n1/uuid"
 	cat "/sys/block/${nvmedev}n1/wwid"
 
-	nvme ns-descs "/dev/${nvmedev}" -n 1 > /dev/null 2>&1
-
-	rc=$?
+	if ! nvme ns-descs "/dev/${nvmedev}" -n 1 > /dev/null 2>&1; then
+		echo "ERROR: ns-desc failed"
+	fi
 
-	nvme disconnect -n "${subsys_name}"
+	nvme disconnect -n "${subsys_name}" > /dev/null 2>&1
 
 	_remove_nvmet_subsystem_from_port "${port}" "${subsys_name}"
 	_remove_nvmet_subsystem "${subsys_name}"
@@ -53,9 +53,5 @@ test() {
 	modprobe -r nvme-loop
 	modprobe -r nvmet
 
-	if [ $rc -ne 0 ]; then
-		echo "Test Failed"
-	else
-		echo "Test complete"
-	fi
+	echo "Test complete"
 }
diff --git a/tests/nvme/026.out b/tests/nvme/026.out
index dcee481..c934cac 100644
--- a/tests/nvme/026.out
+++ b/tests/nvme/026.out
@@ -1,5 +1,4 @@
 Running nvme/026
 91fdba0d-f87b-4c25-b80f-db7be1418b9e
 uuid.91fdba0d-f87b-4c25-b80f-db7be1418b9e
-NQN:blktests-subsystem-1 disconnected 1 controller(s)
 Test complete
-- 
2.19.1


  parent reply	other threads:[~2019-02-21  4:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-21  4:42 [PATCH V2 0/8] nvme: misc cleanups Chaitanya Kulkarni
2019-02-21  4:42 ` [PATCH V2 1/8] nvme/021: use consistent coding style Chaitanya Kulkarni
2019-02-21  4:42 ` [PATCH V2 2/8] nvme/022: " Chaitanya Kulkarni
2019-02-21  4:42 ` [PATCH V2 3/8] nvme/023: " Chaitanya Kulkarni
2019-02-21  4:42 ` [PATCH V2 4/8] nvme/024: " Chaitanya Kulkarni
2019-02-21  4:42 ` [PATCH V2 5/8] nvme/025: " Chaitanya Kulkarni
2019-02-21  4:42 ` Chaitanya Kulkarni [this message]
2019-02-21  4:42 ` [PATCH V2 7/8] nvme/027: " Chaitanya Kulkarni
2019-02-21  4:42 ` [PATCH V2 8/8] nvme/028: " Chaitanya Kulkarni
2019-02-27 18:50 ` [PATCH V2 0/8] nvme: misc cleanups Omar Sandoval
2019-03-01 15:59   ` Chaitanya Kulkarni
2019-03-04 19:10     ` Omar Sandoval

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=20190221044248.11096-7-chaitanya.kulkarni@wdc.com \
    --to=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 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.