From patchwork Tue Jan 28 08:44:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Wagner X-Patchwork-Id: 11353775 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6743214B7 for ; Tue, 28 Jan 2020 08:44:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 48ACE24684 for ; Tue, 28 Jan 2020 08:44:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725879AbgA1Ior (ORCPT ); Tue, 28 Jan 2020 03:44:47 -0500 Received: from mx2.suse.de ([195.135.220.15]:36984 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725853AbgA1Ior (ORCPT ); Tue, 28 Jan 2020 03:44:47 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id DAEC5AD33; Tue, 28 Jan 2020 08:44:45 +0000 (UTC) From: Daniel Wagner To: linux-block@vger.kernel.org Cc: Johannes Thumshirn , Logan Gunthorpe , Omar Sandoval , Daniel Wagner Subject: [PATCH blktests v1 1/2] nvme/018: Ignore message generated by nvme read Date: Tue, 28 Jan 2020 09:44:33 +0100 Message-Id: <20200128084434.128750-2-dwagner@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20200128084434.128750-1-dwagner@suse.de> References: <20200128084434.128750-1-dwagner@suse.de> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org nvme-cli writes 'CAP_EXCEEDED' message also on stdout not just stderr. This lets the test fail as well. Fixes: 1aee5f430b30 ("nvme/018: Ignore error message generated by nvme read") Signed-off-by: Daniel Wagner --- tests/nvme/018 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/nvme/018 b/tests/nvme/018 index 0a5b4c2ab019..d0f15db23538 100755 --- a/tests/nvme/018 +++ b/tests/nvme/018 @@ -43,7 +43,7 @@ test() { sectors="$(blockdev --getsz "/dev/${nvmedev}n1")" bs="$(blockdev --getbsz "/dev/${nvmedev}n1")" - nvme read "/dev/${nvmedev}n1" -s "$sectors" -c 0 -z "$bs" 2>"$FULL" \ + nvme read "/dev/${nvmedev}n1" -s "$sectors" -c 0 -z "$bs" &>"$FULL" \ && echo "ERROR: Successfully read out of device lba range" nvme disconnect -n "${subsys_name}" From patchwork Tue Jan 28 08:44:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Wagner X-Patchwork-Id: 11353777 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8974C159A for ; Tue, 28 Jan 2020 08:44:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 71ED124686 for ; Tue, 28 Jan 2020 08:44:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725853AbgA1Ios (ORCPT ); Tue, 28 Jan 2020 03:44:48 -0500 Received: from mx2.suse.de ([195.135.220.15]:36988 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725881AbgA1Ior (ORCPT ); Tue, 28 Jan 2020 03:44:47 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id DBC65AEC1; Tue, 28 Jan 2020 08:44:45 +0000 (UTC) From: Daniel Wagner To: linux-block@vger.kernel.org Cc: Johannes Thumshirn , Logan Gunthorpe , Omar Sandoval , Daniel Wagner Subject: [PATCH blktests v1 2/2] nmve/018: Reword misleading error message Date: Tue, 28 Jan 2020 09:44:34 +0100 Message-Id: <20200128084434.128750-3-dwagner@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20200128084434.128750-1-dwagner@suse.de> References: <20200128084434.128750-1-dwagner@suse.de> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org 'nvme read' is expected to fail, though the error message "ERROR: Successfully..." is misleading. Reword the error text to clarify the real indent of the test and what failed. Reported-by: Logan Gunthorpe Signed-off-by: Daniel Wagner --- tests/nvme/018 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/nvme/018 b/tests/nvme/018 index d0f15db23538..aa9681b312f7 100755 --- a/tests/nvme/018 +++ b/tests/nvme/018 @@ -44,7 +44,7 @@ test() { bs="$(blockdev --getbsz "/dev/${nvmedev}n1")" nvme read "/dev/${nvmedev}n1" -s "$sectors" -c 0 -z "$bs" &>"$FULL" \ - && echo "ERROR: Successfully read out of device lba range" + && echo "ERROR: nvme read was successful for out of range lba" nvme disconnect -n "${subsys_name}"