Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2223142imm; Thu, 18 Oct 2018 10:58:10 -0700 (PDT) X-Google-Smtp-Source: ACcGV61mfIRLuDYvEZZrejNaF+XCMShIEdrFBjxXRZhVgYjlnYQq3yQaHIbbIgaqg8Hr3WlSA0Go X-Received: by 2002:a17:902:6f16:: with SMTP id w22-v6mr31559571plk.309.1539885490609; Thu, 18 Oct 2018 10:58:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539885490; cv=none; d=google.com; s=arc-20160816; b=lD7+aw8GKArhviHKahocB4leGrI1h0vVVUYVHiOB/TXzKPVJEVTuGbofHOkAdPpyOe UZqxrnYHy8n9cT4W4PB4XVzFhcsmiXtcNmFksn1KJBUXrSTLv+sft+j8owTVl7kKT8PP daxodDEpiuw2N9FOyV8j3GCKmP0dSxwjyk5LUjFCkjLRzf8RwVga5fFxrfHphvgNOdS5 UqI6NZ9tJsBuJ7xb8iynVaz/yItR/f2GG1XSV9cnFG6oQ8QmJUGhGX0Jgl4DBoEm6akN +MwS52irSJAbUZw2r3M0h8ikT8F/xtl2kGPU0lMk3PqG2BcbUtcIxxca4mgSPdNlNDw+ /8RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QbpcD4pW3SPxRgaO5Q0HJS1rlCl61tPaTu9p10aruG8=; b=Z+8Gpr9B/nf1ttu7PDK31HpZnIynQnZWMyd7lWmXbaYL5RWmkAJ4MmYQWuOW7je9gO oP/pYrp3i7wWT+G1FAzEzHXHSTdBhNiHibuqHeVEjowa6Bw22xIWix73jlidxNjspWfE c8Vc8ftXfICT0AuNxZs6X2KZQBhMzOYzRp/f4r43qFqtAZ/jdPkl+yyjb5ImNP7tOmGD O27hRbPZszvsqwLaQR1W6TAKCFHbEVZsc486GZqkchUZN8424G6Orcns2B5GmE2zsuY0 TypG8TfhtBf7IodSd8exufHdSxtF0hzDLmX/Q1FxbfqBAuvpr4Rnb/ABOE0G/1WDGqj0 y0Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xyxsWg+M; 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 f63-v6si23439023pfb.0.2018.10.18.10.57.55; Thu, 18 Oct 2018 10:58:10 -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=xyxsWg+M; 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 S1728781AbeJSB7F (ORCPT + 99 others); Thu, 18 Oct 2018 21:59:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:46846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728728AbeJSB7F (ORCPT ); Thu, 18 Oct 2018 21:59:05 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0D2422145D; Thu, 18 Oct 2018 17:56:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539885420; bh=e1weOQmCsA9xZiadk69ZwbiO95DdKO5H03RTeNVkkZA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xyxsWg+MNpr0Hb/EnK3Lgwbixe91w3LHNH7BfB1HsnT0SuTxAEnsoIrhRYoPWlQck KXvRzoFWJeiPlzDODUvtoGSjr9eJrzwu/GiWYrtFN2dLgX6+iXFnNDotHMVTx+oTae GMwml0B/0iKqRGlXdmJ17c2QeuPI2XSNheLHAF2o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sabrina Dubroca , Stefano Brivio , "David S. Miller" , Sasha Levin Subject: [PATCH 4.18 23/53] selftests: pmtu: properly redirect stderr to /dev/null Date: Thu, 18 Oct 2018 19:54:16 +0200 Message-Id: <20181018175420.790185616@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181018175416.561567978@linuxfoundation.org> References: <20181018175416.561567978@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ 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 Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/net/pmtu.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/tools/testing/selftests/net/pmtu.sh +++ b/tools/testing/selftests/net/pmtu.sh @@ -178,8 +178,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 }