From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS, T_DKIMWL_WL_HIGH,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 45DF8C004C9 for ; Tue, 7 May 2019 05:45:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0F5B2205ED for ; Tue, 7 May 2019 05:45:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557207921; bh=P3D94zbq9asJwEpL9jM2m7mvRPXYbmOzVN6Zns/Q08M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=F5dzZUSCa8oLHXdxj4+vDKUJp9DzWPX3GJC7ajMs1W/a6Leb6pTijIrNXOiQyZ0yo nEF765oUIoVmp3B/wVejx+WKo8WHtTOaZ944W9r4BDvHlvcMMUeL/EliuTmCOMU17J WcUZvDGce0wXB4VqWaHFbve5N5R6gpCUtHXOhGJY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729426AbfEGFpU (ORCPT ); Tue, 7 May 2019 01:45:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:33176 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729475AbfEGFmK (ORCPT ); Tue, 7 May 2019 01:42:10 -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 95F9620B7C; Tue, 7 May 2019 05:42:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557207729; bh=P3D94zbq9asJwEpL9jM2m7mvRPXYbmOzVN6Zns/Q08M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sl5ROjvp73eV5mrJpfFRbVq3fIAvPKSOqqKBNocRhEfBDxav1My04aF4726DJF63j xKBv1Mt1jmlgTV10f8iX+JT0fh6C/Ad6Q1wePGKuG91tpS2ByDs9yNEApGAPFmOGi2 lwDcc7dm+eZjLfroldQgG04htqI/88dvj/8hP2WQ= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Po-Hsu Lin , "David S . Miller" , Sasha Levin , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH AUTOSEL 4.9 21/25] selftests/net: correct the return value for run_netsocktests Date: Tue, 7 May 2019 01:41:18 -0400 Message-Id: <20190507054123.32514-21-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190507054123.32514-1-sashal@kernel.org> References: <20190507054123.32514-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Po-Hsu Lin [ Upstream commit 30c04d796b693e22405c38e9b78e9a364e4c77e6 ] The run_netsocktests will be marked as passed regardless the actual test result from the ./socket: selftests: net: run_netsocktests ======================================== -------------------- running socket test -------------------- [FAIL] ok 1..6 selftests: net: run_netsocktests [PASS] This is because the test script itself has been successfully executed. Fix this by exit 1 when the test failed. Signed-off-by: Po-Hsu Lin Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- tools/testing/selftests/net/run_netsocktests | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/run_netsocktests b/tools/testing/selftests/net/run_netsocktests index 16058bbea7a8..c195b4478662 100755 --- a/tools/testing/selftests/net/run_netsocktests +++ b/tools/testing/selftests/net/run_netsocktests @@ -6,7 +6,7 @@ echo "--------------------" ./socket if [ $? -ne 0 ]; then echo "[FAIL]" + exit 1 else echo "[PASS]" fi - -- 2.20.1