Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3729654imm; Mon, 8 Oct 2018 08:37:11 -0700 (PDT) X-Google-Smtp-Source: ACcGV60L25hBQPdwz+ycPP1Fz1EiAQMmfyIvEM3hn/8lXRIEGSLTSwh1Pbui7XnFVPBv1lylIN0i X-Received: by 2002:a62:de05:: with SMTP id h5-v6mr25698380pfg.258.1539013031893; Mon, 08 Oct 2018 08:37:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539013031; cv=none; d=google.com; s=arc-20160816; b=BjGW4mq51p1dycqW1R7fDRnwdT4D0jBuB7OZsBfaxwN4YD2LMFjcdR+IYjR6qdGmX5 KIyniJzm+3js7nMvXSaKNT3wi9Z9W9TVg4Z0i7ASoMKZ3KhQV2ouDvN8g0mmuoIoIol6 DLRWRom5iQxKS0PQPNg32XaYDUEnm1t4ZSXsWdp5DeymB6ANE5/Pi8+QXzlAM1mLqg2m QQbURZ4Ybnz3ADQVOBRWAmDOymLkBBq4Uk7+K/em+kEnxFL5Z3eoxI1eiiOwHjVhqhZ4 mkLfLOeRp1ChLZRkCgUordqBgDqzWADA7BnZcMkwp2fCCN66oi2bjOMc1boEzxVVS+jH 3nxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=sX/N3uK+8FJR6z0QLFZO+MoAxFnxwr0bgl/p6c0jRdM=; b=grjw5izFOhhE9amZNxYmH79ecNn6M+R8+wPqvs7/j/WhC4wP1VjCL6937G+wveG7kO ITWYRUgnLBmX7vpXYWL3iQyneNBCQ4HNWOmdsrIpeMKPtq2QcAeL1Qdv11Csu4WXaDLn SFzNtbNIeuauKLvbxwlSAfSQI17mJNXa+BlDF44J31ZA9vK023rI27KBErhh9lrcHT3Q wfU8WfoJMXsZRWDf2gA+F0oWJR72+UZnQeTpB4DS5qRxeSWBlerRTI+14j5sAvqKXzEp kliSD25uvD8buy+ldfHmmxBMob1Zs+QTp9x13SwiYazgUrdQYO0AmtzkB3sLqSW4PJx0 9JRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="p2y/GpgE"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w9-v6si17896658pll.138.2018.10.08.08.36.56; Mon, 08 Oct 2018 08:37:11 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b="p2y/GpgE"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727434AbeJHWiI (ORCPT + 99 others); Mon, 8 Oct 2018 18:38:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:56426 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727370AbeJHWiI (ORCPT ); Mon, 8 Oct 2018 18:38:08 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AEC88214FF; Mon, 8 Oct 2018 15:25:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539012353; bh=BKW7hA2GzJvXMjtfwNO/aBqgB34CU8Cvx7gas2jcDAo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=p2y/GpgElw9RezX+/FznuDCbkzhzM5LJys8kTi3vHQBPPhMn8QPNgOTb7RgRaAgsT wuyb2hxkPs9RulHBO/zYBxMVrDChlD+LFh0F2G7Lm9eDP0QDMhgcvKLv8bT9/HJDny tQ7reW1hz/zqIro7/8gNTn0CYyq78Rw7hBtdEjOw= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Sabrina Dubroca , "David S . Miller" , Sasha Levin Subject: [PATCH AUTOSEL 4.18 27/58] selftests: pmtu: properly redirect stderr to /dev/null Date: Mon, 8 Oct 2018 11:24:52 -0400 Message-Id: <20181008152523.70705-27-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181008152523.70705-1-sashal@kernel.org> References: <20181008152523.70705-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sabrina Dubroca [ Upstream commit 0a286afee5a1e8dca86d824209dbd3200294f86f ] The cleanup function uses "$CMD 2 > /dev/null", which doesn't actually send stderr to /dev/null, so when the netns doesn't exist, the error message is shown. Use "2> /dev/null" instead, so that those messages disappear, as was intended. Fixes: d1f1b9cbf34c ("selftests: net: Introduce first PMTU test") Signed-off-by: Sabrina Dubroca Acked-by: Stefano Brivio Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- tools/testing/selftests/net/pmtu.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/net/pmtu.sh b/tools/testing/selftests/net/pmtu.sh index f8cc38afffa2..03e0566740de 100755 --- a/tools/testing/selftests/net/pmtu.sh +++ b/tools/testing/selftests/net/pmtu.sh @@ -175,8 +175,8 @@ setup() { cleanup() { [ ${cleanup_done} -eq 1 ] && return - ip netns del ${NS_A} 2 > /dev/null - ip netns del ${NS_B} 2 > /dev/null + ip netns del ${NS_A} 2> /dev/null + ip netns del ${NS_B} 2> /dev/null cleanup_done=1 } -- 2.17.1