Received: by 10.223.164.202 with SMTP id h10csp191588wrb; Mon, 13 Nov 2017 05:03:10 -0800 (PST) X-Google-Smtp-Source: AGs4zMY1ABid6lmpq3d+q1kbJ/hxHzeNcUHgi/rI0ZDc7nhnMq9y3prCfgBe9+BjJSsksNebfrg9 X-Received: by 10.159.235.150 with SMTP id f22mr8664020plr.416.1510578190077; Mon, 13 Nov 2017 05:03:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510578190; cv=none; d=google.com; s=arc-20160816; b=WWavbg77M8QBl8cy55zk7ibdanvgtAmNolndXv6cQDyCe4QHfSkjjCh7XmM/beetP8 cP7P2UyGSuy4+zzIOPgdLsvbBNVUwpfUhZKpra1igh7BYFXPU+DGLz/bb9tMrkEeULjV b+c+bRcRo9aYkvqEOSNQk0D75tk4frPtJ7l51jPO3NoWMdOc76bZ3jUksWxiyxQGsf+B fSrQ/FrDmHgY7BRcsZNWPxg7mGKTfX+wYpbcL1TaY0RFZl+01gQh0WNJz5qynDzH9m5Z XICC5zoh9ejHQsETBe+9Tfr0M+uYRt7XwadxNA9hhCSw6gKuHTi5q9gJaDce0/Zhindb pAgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=i7jAmho9M+vIvdx0cifb/a//vuiEQ5P6YT/taCEAL+g=; b=vQr10ssiizsP5qEBh0eFrPENd2hCJ5NhZIlMHZkQc8mRCARlqGQNKm7zd+6qFWDZBA n1pUgOj1Sabwd42dO5dPaEMZn/aoFXmrj+tCDClb0wUHvR1Fty4T8NtF10QmPoyZogJL KZ1sA7bI5ODDaRsSi66NRP6kAaGMhs/Xymqt4+HDKeZbQfABiPOeu+BITHQe1z8HHmIn 4DAdyOsgF/nja+ipAZ4WTczXQ0Tawq8XSw9/3AvQN7NwCjgpsU/PpMYN12G5Z0KwOCcF jjGpBlWeuJZiAdjOAtj1ZSRbNiTE9vfPNHMKbXPBt5HJOyYcW2MLLeV0LrQMKh3HpZXH Saqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b34si14318774pld.689.2017.11.13.05.02.56; Mon, 13 Nov 2017 05:03:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754810AbdKMNCO (ORCPT + 95 others); Mon, 13 Nov 2017 08:02:14 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:50724 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754768AbdKMNCL (ORCPT ); Mon, 13 Nov 2017 08:02:11 -0500 Received: from localhost (LFbn-1-12253-150.w90-92.abo.wanadoo.fr [90.92.67.150]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id D3BDAAB6; Mon, 13 Nov 2017 13:02:09 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Luis R. Rodriguez" , Amit Pundir Subject: [PATCH 4.9 70/87] selftests: firmware: send expected errors to /dev/null Date: Mon, 13 Nov 2017 13:56:27 +0100 Message-Id: <20171113125621.643501994@linuxfoundation.org> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171113125615.304035578@linuxfoundation.org> References: <20171113125615.304035578@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Luis R. Rodriguez commit 880444e214cfd293a2e8cc4bd3505f7ffa6ce33a upstream. Error that we expect should not be spilled to stdout. Without this we get: ./fw_filesystem.sh: line 58: printf: write error: Invalid argument ./fw_filesystem.sh: line 63: printf: write error: No such device ./fw_filesystem.sh: line 69: echo: write error: No such file or directory ./fw_filesystem.sh: filesystem loading works ./fw_filesystem.sh: async filesystem loading works With it: ./fw_filesystem.sh: filesystem loading works ./fw_filesystem.sh: async filesystem loading works Signed-off-by: Luis R. Rodriguez Signed-off-by: Amit Pundir Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/firmware/fw_filesystem.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/tools/testing/selftests/firmware/fw_filesystem.sh +++ b/tools/testing/selftests/firmware/fw_filesystem.sh @@ -48,18 +48,18 @@ echo "ABCD0123" >"$FW" NAME=$(basename "$FW") -if printf '\000' >"$DIR"/trigger_request; then +if printf '\000' >"$DIR"/trigger_request 2> /dev/null; then echo "$0: empty filename should not succeed" >&2 exit 1 fi -if printf '\000' >"$DIR"/trigger_async_request; then +if printf '\000' >"$DIR"/trigger_async_request 2> /dev/null; then echo "$0: empty filename should not succeed (async)" >&2 exit 1 fi # Request a firmware that doesn't exist, it should fail. -if echo -n "nope-$NAME" >"$DIR"/trigger_request; then +if echo -n "nope-$NAME" >"$DIR"/trigger_request 2> /dev/null; then echo "$0: firmware shouldn't have loaded" >&2 exit 1 fi From 1584833487762091332@xxx Thu Nov 23 05:29:53 +0000 2017 X-GM-THRID: 1584833487762091332 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread