From patchwork Tue Feb 19 20:23:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaitanya Kulkarni X-Patchwork-Id: 10820791 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 F1E711575 for ; Tue, 19 Feb 2019 20:24:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DABE82C3F5 for ; Tue, 19 Feb 2019 20:24:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D8FFB2C466; Tue, 19 Feb 2019 20:24:12 +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 8589E2C497 for ; Tue, 19 Feb 2019 20:24:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726517AbfBSUYM (ORCPT ); Tue, 19 Feb 2019 15:24:12 -0500 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:2874 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726239AbfBSUYL (ORCPT ); Tue, 19 Feb 2019 15:24:11 -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=1550607852; x=1582143852; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=5mi+oDVpIF99Lhu20p+BqfUfb0GgBQWioqBgTdfC2D0=; b=IwoJB66aCtmhwMDZC7swtzQhPzBUvAzVEbgnEgP4UvZNULUx7T7beaju EzOopPcCicaGIzcpFC0zRwitdn4ExcJ8NmUr47AD/NtbnagCWe8xD7xFW AfAdFI/7aj12LQrWAkqrc6tPhQJ526OkzVAhBDzKaY/3hW52tbp7fldF1 1XQghDylrMeXslowbTbZuiZ6P7Uv+kAl8id6tZeysl2kESLoXFcgERQjT z3rpXNyMsq/k4ZRxDot5DGkQhCez9qmQRMWFfh9BNOn6/ShBjNWoZnXpq gAXefnibTbfiCjz2Xujast0TIpYLZO+MvAp4P7m8ykq7ZwFU8IPplHxN8 Q==; X-IronPort-AV: E=Sophos;i="5.58,388,1544457600"; d="scan'208";a="103418603" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 20 Feb 2019 04:24:12 +0800 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep01.wdc.com with ESMTP; 19 Feb 2019 12:02:35 -0800 Received: from cmercuryqemu.hgst.com ([10.202.65.32]) by uls-op-cesaip01.wdc.com with ESMTP; 19 Feb 2019 12:24:12 -0800 From: Chaitanya Kulkarni To: linux-block@vger.kernel.org Cc: osandov@osandov.com, Chaitanya Kulkarni Subject: [PATCH BLKTESTS V2 3/3] nvme/017: fix output format Date: Tue, 19 Feb 2019 12:23:55 -0800 Message-Id: <1550607835-11755-4-git-send-email-chaitanya.kulkarni@wdc.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1550607835-11755-1-git-send-email-chaitanya.kulkarni@wdc.com> References: <1550607835-11755-1-git-send-email-chaitanya.kulkarni@wdc.com> 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 Signed-off-by: Chaitanya Kulkarni --- tests/nvme/017 | 4 +++- tests/nvme/017.out | 11 ----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/tests/nvme/017 b/tests/nvme/017 index 0b86bec..a0d258d 100755 --- a/tests/nvme/017 +++ b/tests/nvme/017 @@ -37,7 +37,9 @@ 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/" + if ! nvme discover -t loop | grep -q "${subsys_nqn}" ; then + echo "nvme discover command failed" + fi _remove_nvmet_subsystem_from_port "${port}" "${subsys_name}" _remove_nvmet_port "${port}" diff --git a/tests/nvme/017.out b/tests/nvme/017.out index 4b0877a..6ce9a80 100644 --- a/tests/nvme/017.out +++ b/tests/nvme/017.out @@ -1,13 +1,2 @@ Running nvme/017 - -Discovery Log Number of Records 1, Generation counter 1 -=====Discovery Log Entry 0====== -trtype: loop -adrfam: pci -subtype: nvme subsystem -treq: not specified -portid: X -trsvcid: -subnqn: blktests-subsystem-1 -traddr: Test complete