Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp259331pxx; Wed, 28 Oct 2020 04:20:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzW7N7JGWGe3/KvGvIDQ2W9DgYDQOPgEPYMp4AqDupOM3vtqZ2t/SA4Pnw4Yj+nR6jFeXr6 X-Received: by 2002:a17:906:714b:: with SMTP id z11mr6918192ejj.139.1603884014946; Wed, 28 Oct 2020 04:20:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603884014; cv=none; d=google.com; s=arc-20160816; b=0Bis2a/5/P/+Ui3y/qLhBIexW+xf+HLKRLxa64e2zsRqGoiR9L+pchbFi1+L92gSlB AsGNUjqdiKZ5jakDsdmbGtFvRXEgJXqxMHaIQO0S90wo7ynhCIg2zOX1RqyPe7N798OL DW0O1HWkd6nghwUkhPYSIdE4zjcwXa0wBgvMrrGij4wlbFTs7l/iusLSeIDRs44MW5E+ H16R0RSdKA8zdsco9b+aW7xxHefXw5ZdoitfhVU8GFKImWRHL7l4LVsZw0VoMv7Wjjlk tNEudIi7xti3DFYQ7J/qeNLPZDxRgktDRfKjTeYHpIx0/vil+lhSI6AMLGNZ51KA+Nx7 693w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cuaCN52LToy/txH6tJPasR4AmVkLTZssSrJSjsxUoz4=; b=x4r5BsrysIu9ws4W2l1m63cm6CCiRuYQMXE4ag/h0P4lhgSbwgmX+baIrW1PZzqXoJ JiQfCUvWfNmdPd3kc5ItqPyOgOpJbPvQ7Zu/026FS8J0BhjkIVfhBgfGVSbp1uAll1gD QYtJnCoSbaOXkADxJoMOYPvUlGOg4rd/RFekeLHZAe7XFkwDpEZq25aDJ8U4RHycropF QWL7oaA0iq/xHUFLBpHxb/e5osdHmcQTmMt3H8PjBbdWrmu62XV7CmuDIF8teqHPuKMw 3zIeQKJHrt0LqFHbJicypCpqRSTJ9ENm4XYmyK0oNh/2yM6hvtivFs+V0eDbGt7YsIP+ P2GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=y9jL+LQq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t1si2868715ejb.712.2020.10.28.04.19.53; Wed, 28 Oct 2020 04:20:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=y9jL+LQq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1789350AbgJ0PB7 (ORCPT + 99 others); Tue, 27 Oct 2020 11:01:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:60054 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763672AbgJ0O6h (ORCPT ); Tue, 27 Oct 2020 10:58:37 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 1231D20715; Tue, 27 Oct 2020 14:58:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810716; bh=5r9aE1300A2TPWPVPHK4/yjepE+OBZLYkf5kSNzM6q4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=y9jL+LQqDLS9p5qOtAGKmm2djkjY2Z6nGiK2cJzaBCGYcyxaosejvhbiL67uq9/wb l13JSHgtXMtXoU1hV6+FHKoT+IWTSjo5rh5X3AzBjVgjfehHGMd+DKrYramy0Y2MQS LUSM7Pd8mIxz84ONS1vXXCR2ywxLpVhSv3GpGdz0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matthieu Baerts , Paolo Abeni , "David S. Miller" , Sasha Levin Subject: [PATCH 5.8 238/633] selftests: mptcp: interpret \n as a new line Date: Tue, 27 Oct 2020 14:49:41 +0100 Message-Id: <20201027135533.845473814@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthieu Baerts [ Upstream commit 8b974778f998ab1be23eca7436fc13d2d8c6bd59 ] In case of errors, this message was printed: (...) # read: Resource temporarily unavailable # client exit code 0, server 3 # \nnetns ns1-0-BJlt5D socket stat for 10003: (...) Obviously, the idea was to add a new line before the socket stat and not print "\nnetns". Fixes: b08fbf241064 ("selftests: add test-cases for MPTCP MP_JOIN") Fixes: 048d19d444be ("mptcp: add basic kselftest for mptcp") Signed-off-by: Matthieu Baerts Acked-by: Paolo Abeni Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- tools/testing/selftests/net/mptcp/mptcp_connect.sh | 4 ++-- tools/testing/selftests/net/mptcp/mptcp_join.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/net/mptcp/mptcp_connect.sh b/tools/testing/selftests/net/mptcp/mptcp_connect.sh index acf02e156d20f..ed163e4ad4344 100755 --- a/tools/testing/selftests/net/mptcp/mptcp_connect.sh +++ b/tools/testing/selftests/net/mptcp/mptcp_connect.sh @@ -421,9 +421,9 @@ do_transfer() duration=$(printf "(duration %05sms)" $duration) if [ ${rets} -ne 0 ] || [ ${retc} -ne 0 ]; then echo "$duration [ FAIL ] client exit code $retc, server $rets" 1>&2 - echo "\nnetns ${listener_ns} socket stat for $port:" 1>&2 + echo -e "\nnetns ${listener_ns} socket stat for ${port}:" 1>&2 ip netns exec ${listener_ns} ss -nita 1>&2 -o "sport = :$port" - echo "\nnetns ${connector_ns} socket stat for $port:" 1>&2 + echo -e "\nnetns ${connector_ns} socket stat for ${port}:" 1>&2 ip netns exec ${connector_ns} ss -nita 1>&2 -o "dport = :$port" cat "$capout" diff --git a/tools/testing/selftests/net/mptcp/mptcp_join.sh b/tools/testing/selftests/net/mptcp/mptcp_join.sh index dd42c2f692d01..9cb0c6af326ba 100755 --- a/tools/testing/selftests/net/mptcp/mptcp_join.sh +++ b/tools/testing/selftests/net/mptcp/mptcp_join.sh @@ -167,9 +167,9 @@ do_transfer() if [ ${rets} -ne 0 ] || [ ${retc} -ne 0 ]; then echo " client exit code $retc, server $rets" 1>&2 - echo "\nnetns ${listener_ns} socket stat for $port:" 1>&2 + echo -e "\nnetns ${listener_ns} socket stat for ${port}:" 1>&2 ip netns exec ${listener_ns} ss -nita 1>&2 -o "sport = :$port" - echo "\nnetns ${connector_ns} socket stat for $port:" 1>&2 + echo -e "\nnetns ${connector_ns} socket stat for ${port}:" 1>&2 ip netns exec ${connector_ns} ss -nita 1>&2 -o "dport = :$port" cat "$capout" -- 2.25.1