Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp462043yba; Wed, 15 May 2019 04:32:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdTYNHTqJ6AAXvYKkqJoel0D5Pj4Jn+J5rsGc0mlB/ayQvTPIUBd67EmaXLcblbuiaUzt0 X-Received: by 2002:a17:902:4181:: with SMTP id f1mr22280999pld.22.1557919935067; Wed, 15 May 2019 04:32:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557919935; cv=none; d=google.com; s=arc-20160816; b=PkYpQZN9G5ad6s5uO6YAt/xVyVGrC6IoT0hLzI5xt78Z2+8T82akyNAgVJlS08zW+7 4lJjqxMJ5YhBzVsqszpdNohA0c41kvoihUpZz9w+gNGi0nMgYfIp8Tikx5QE4VyyQu8l ydGnhHcGZseMsukXBAeY18Hp4BmygSPFHxQGIkaFndg5blwYj8MP5TsIhlm6M1xdbTFK JR+/u9+74GkUFcsG7F4fhQ6nvs6ncC6eYC/Tu3IB7+VH5NsP/c64GbM4e1BQnUaW4eAo NYpv8FSmtTUTpQSyhGnxwLQfm2N08D+EhWmTZHN9O11hbWaygL2pJBWfcnwgE9yzSSf8 2+Pw== 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=1eKfE8Qs8ydbcu2iS40sRDF9FPd5l4hvpIRaEKapbK4=; b=e1RAQI6LVPx9Avx6ImlZOv0eixCAZC0T41axP7SeOa619GybwAABPpCvbMSS/8sSPQ vFdjdgvdeHqW1TG0fOeOGoXHANARPqlecSChIiBxiQidCsN6QreTJcvv0r+vZtprCMEJ 3ldC2T4NyXRqprL9JvDZJsZ50ROXfcjzkSrp0yIBXX16yqKTcxwgv2/aFJ9rQaRbupvP uAcDA5srcZ2GGt1ozTN4z4cAIEwjqFYSFQAT77vUOZLd1MlYV+MTG2uxwO2ueevSs6ll B2kPgGCtbO5Ol7u/nrjUFSZ20abHqRsdwpGQV3go01TGQNKaOqU5cwbMtRhlpTi5xMLg no1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LbrnCu+J; 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 m5si1567349pgj.451.2019.05.15.04.32.00; Wed, 15 May 2019 04:32:15 -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=LbrnCu+J; 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 S1732536AbfEOL3U (ORCPT + 99 others); Wed, 15 May 2019 07:29:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:40534 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732057AbfEOL3R (ORCPT ); Wed, 15 May 2019 07:29:17 -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 D202C2084A; Wed, 15 May 2019 11:29:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557919757; bh=/d9PVLH/lgj6KLU9qXfdf0QWirSWnEW5nYPk3uGDmg4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LbrnCu+Jlrrl9bdW/fI08OhgUkvX+4CiRCzc/4ENJQcBwofltAud0LQzvJ11U2s0A Gn5W3/7OUOCm54SHl/0a4laboIynyi/Z310i5wg3Iu/yq4UtNFgiiyBfXql9+SUVDd gcxBQx2sGX3Hhj/zkebm9GbqL2cWcPIdKp5cw3Pk= 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 075/137] selftests/net: correct the return value for run_netsocktests Date: Wed, 15 May 2019 12:55:56 +0200 Message-Id: <20190515090658.877650303@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 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 b093f39c298c3..14e41faf2c574 100755 --- a/tools/testing/selftests/net/run_netsocktests +++ b/tools/testing/selftests/net/run_netsocktests @@ -7,7 +7,7 @@ echo "--------------------" ./socket if [ $? -ne 0 ]; then echo "[FAIL]" + exit 1 else echo "[PASS]" fi - -- 2.20.1