Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp462675yba; Wed, 15 May 2019 04:32:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwfyxnP8N776Fmpr9GI8hJQYWEE0lpQ3/8voURWMqBtCK9Mb/0vhKAOfrPVBes9A1TghvmY X-Received: by 2002:a63:6fce:: with SMTP id k197mr44372279pgc.140.1557919972172; Wed, 15 May 2019 04:32:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557919972; cv=none; d=google.com; s=arc-20160816; b=pWVGH8OcxkxZWluUpn21iwsgIwdtY0I+HpCU4Fc7kJrn+3UMGLoj8vRLoECSTRuNX2 9oogiYWvp91PTbiBt8l5BJ7Xp+qE4aSEAlto/8mwQTgWTV2Zy+kIBQ0G4BZbWIPh/6Ql ePVQBmTeVOzpzu5wa8qq2CflhJ0G7LG6WeTtkuzf7VOSp8vqCraJYCFOWY/fgpgqXEjD e+W+rigQ2+o1aTF6Q7WHOUWDD+PchRZyM3RVCkaJ3B/POKwvTMPdAGzQTckF01LPvvEt IZjyIvar1oJvPrV4G7ROL0nrGaDmW5xmHorpS5KKsWJ+Sr2N5BhPy+PZVKqtebRpbqHB wxew== 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=LAqSCB3fR8UBXIvC+8P3hUgESLcVFu/DAQYlX+YLyc8=; b=skxtqbIDaBbwgh9uQ1IJggo8fbWJVvtszS/bs9hCWl64RwKEplwWzlFAgUjz3/MbU+ sKueCLw4g47lyF27IW7b9An+uNVF4ZqWpIgzSyNCFKk6OrCOjNDRA+bsnuJ3aLdP9+1M KK9qUmqOV2keSrjDpSznry3ZxMWti+9BU6504zM3Z++89gzzBy0tz0CrgwedslUJuCK6 jLefA+TjHIyrRfhcAWmHXspAsLd9u3S8dIxRawLdAkOeP6Wks3R2WbXBqOMDszw1T0dy uPx9AE2jDdrcCTXk6/jUnfGuBT8cVdvKy6749SAWP/Qz/G1BZVh1+5xHSiihwFENp56y 17aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dZp7q2Xv; 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 f1si1550543pgq.4.2019.05.15.04.32.37; Wed, 15 May 2019 04:32:52 -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=dZp7q2Xv; 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 S1732626AbfEOL3t (ORCPT + 99 others); Wed, 15 May 2019 07:29:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:41144 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732314AbfEOL3r (ORCPT ); Wed, 15 May 2019 07:29:47 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 0342B216F4; Wed, 15 May 2019 11:29:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557919786; bh=eOT/cH2Rj/MbeOz0BDKtEkQDlgNJp2D9ELE24IIFEX8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dZp7q2Xv/B+5TCx9c0qRH9HU9Rih1N11hpc07dR2g7ixHIaoukTDUbVFuJAB285+P 1M9RRBSsJZqWzAKCC6HCagLCnOi1PL4O764ENJsJtETuH80XmxaTqypdGV15vv1+3w bc8Ek5Nbay3+vIsfSplwHHZWqVmeU7XX5qvmXGC4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Po-Hsu Lin , "David S. Miller" , Sasha Levin Subject: [PATCH 5.0 076/137] selftests/net: correct the return value for run_afpackettests Date: Wed, 15 May 2019 12:55:57 +0200 Message-Id: <20190515090658.949905307@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190515090651.633556783@linuxfoundation.org> References: <20190515090651.633556783@linuxfoundation.org> User-Agent: quilt/0.66 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 [ Upstream commit 8c03557c3f25271e62e39154af66ebdd1b59c9ca ] The run_afpackettests will be marked as passed regardless the return value of those sub-tests in the script: -------------------- running psock_tpacket test -------------------- [FAIL] selftests: run_afpackettests [PASS] Fix this by changing the return value for each tests. Signed-off-by: Po-Hsu Lin Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- tools/testing/selftests/net/run_afpackettests | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/testing/selftests/net/run_afpackettests b/tools/testing/selftests/net/run_afpackettests index 2dc95fda7ef76..ea5938ec009a5 100755 --- a/tools/testing/selftests/net/run_afpackettests +++ b/tools/testing/selftests/net/run_afpackettests @@ -6,12 +6,14 @@ if [ $(id -u) != 0 ]; then exit 0 fi +ret=0 echo "--------------------" echo "running psock_fanout test" echo "--------------------" ./in_netns.sh ./psock_fanout if [ $? -ne 0 ]; then echo "[FAIL]" + ret=1 else echo "[PASS]" fi @@ -22,6 +24,7 @@ echo "--------------------" ./in_netns.sh ./psock_tpacket if [ $? -ne 0 ]; then echo "[FAIL]" + ret=1 else echo "[PASS]" fi @@ -32,6 +35,8 @@ echo "--------------------" ./in_netns.sh ./txring_overwrite if [ $? -ne 0 ]; then echo "[FAIL]" + ret=1 else echo "[PASS]" fi +exit $ret -- 2.20.1