From patchwork Thu Feb 21 04:42:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaitanya Kulkarni X-Patchwork-Id: 10823137 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7BE1F139A for ; Thu, 21 Feb 2019 04:43:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6BF0230062 for ; Thu, 21 Feb 2019 04:43:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5FFB130065; Thu, 21 Feb 2019 04:43:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E500930062 for ; Thu, 21 Feb 2019 04:43:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726272AbfBUEnR (ORCPT ); Wed, 20 Feb 2019 23:43:17 -0500 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:38404 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726234AbfBUEnR (ORCPT ); Wed, 20 Feb 2019 23:43:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1550724267; x=1582260267; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Ku+jq0dVyjIM5dKH2/mW0ifuisJYDNlGOya+gmn3ATU=; b=GqEF/EFO7FsBWYLxxnZSQzgqTGx3n4ZC0E3q0XP6R5iQKN/0WdHFk42S s2DEoxxzaT6bQRkGWxcrwAjkVsc06EIPoaHomRcuvZRrQ1yWRxsrojvtC eYHUnIz+84Nd6mW5Ig0v4k15wk4WdayvOIEDjOBOjPc238sUKfs1tj4xk UfYjn95S2W0Nuw6OKQN7TS4ezq3GvLTGmo7FYgkUf9e0fhr3M9pq30w4r 7MdnVu3hcb+BTBZik88q0/uY5RtZwdWAnTKU03J+MybusT54PzAvirBV7 0WfG+yj4xEO983AYKaq3TvbCy4s6uBM7v5ypCVjQcH+TexEzSPRMrbqUX g==; X-IronPort-AV: E=Sophos;i="5.58,393,1544457600"; d="scan'208";a="200133683" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 21 Feb 2019 12:44:23 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 20 Feb 2019 20:23:36 -0800 Received: from cmercuryqemu.hgst.com ([10.202.65.32]) by uls-op-cesaip02.wdc.com with ESMTP; 20 Feb 2019 20:43:14 -0800 From: Chaitanya Kulkarni To: linux-block@vger.kernel.org Cc: osandov@osandov.com, Chaitanya Kulkarni Subject: [PATCH V2 6/8] nvme/026: use consistent coding style Date: Wed, 20 Feb 2019 20:42:46 -0800 Message-Id: <20190221044248.11096-7-chaitanya.kulkarni@wdc.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190221044248.11096-1-chaitanya.kulkarni@wdc.com> References: <20190221044248.11096-1-chaitanya.kulkarni@wdc.com> MIME-Version: 1.0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP --- 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