Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp488639yba; Wed, 15 May 2019 05:03:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqyU6/ji1SaJMgKWuOkQtKCfckeIbw6R52633VL00T7hKYwDh58Oaxn01V3UmfhzBQjghEhE X-Received: by 2002:a17:902:e30b:: with SMTP id cg11mr42671083plb.3.1557921803261; Wed, 15 May 2019 05:03:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557921803; cv=none; d=google.com; s=arc-20160816; b=mk42SSN8///Lj0F88Bx8juaFtU70O+s6+M5PVxYjIwekyqKoEPygwvJKx12V6xiIOf ZW5fKtlR0g2JCbC1JSA80l6t+yGIqQpw8YZe5D4T5WyL6duowY76cALAmLcEQE01ARr4 v/E4U+n7SLJBmpcZb315AZ9joJM319ThjghNY3iM0rtNT4AIfqlrVuYseF83NgGLxkBk dacETcKm5yz21hhB2V7W3dqbiMXObVvdWowKwDyCUCZUQ8kBJTXGEj3ufc/FkG95o/E9 SJGIqfN1q7VOgca2QQ2CmYpes5ICWW7lUKdwF85Ve/E3Lonk0XmLK7vADGFWflDjgMAU 5GuA== 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=zCLzj9GziwVlNfqvIyM6/NjP4omQa99X3P+xuPl/2z0=; b=dwLMel3X7dUHj2SSOCCkZvB2Adw6wpebNELS9RLLjBGZt6iTyov6aX/FzHCDNwUSv1 NnnToGQh8821GJ9p68tXEVcexrvJKfJIZjO/t4R0f6aviBTNMoaV87AjV4pf5dFjtzaW FfOazuVskYqonDUlE8fYQAFFEYtND+coIoXbKGU56x5g4FD5Nr6wNbtExMEPZWXdiC3u jpAjpODAhEKMvI2IC2Xzg3hts1pNVsMgRLGhY8e1GWaa7KILXfF1ixA3QE6int3b2o6x NNUprs1nzE/OypKuNTYC5lM8hKl7tmczfVH0wVN5VA8u9nWKLACyr5pJx60jiakOCDUk ueww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oMegxNBL; 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 o6si1555925plh.186.2019.05.15.05.03.05; Wed, 15 May 2019 05:03:23 -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=oMegxNBL; 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 S1730120AbfEOLOU (ORCPT + 99 others); Wed, 15 May 2019 07:14:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:50272 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730108AbfEOLOQ (ORCPT ); Wed, 15 May 2019 07:14:16 -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 58E8920644; Wed, 15 May 2019 11:14:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557918855; bh=bo9yd0UhOWFKgWMME1z3sLKqkExmt0soqEeXTRFjdCk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oMegxNBL9JzKzdPyg1UjkVwyf1GJFapOkLpH1SNhpbp39Y6t18t2ZK+7ipVKIeSZE 2PvhbJzJ9glWy/ecUUMpfOQOKWAole5EBc3N5ErVaSb1dg6l+ZM424+qJ/zz0x9ty8 tQUgbFcYe9TQzu7+pLx/ipAd84w+CdFVmzYe8nHY= 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 4.9 25/51] selftests/net: correct the return value for run_netsocktests Date: Wed, 15 May 2019 12:56:00 +0200 Message-Id: <20190515090624.593926094@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190515090616.669619870@linuxfoundation.org> References: <20190515090616.669619870@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 16058bbea7a85..c195b44786627 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