Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp337057yba; Sat, 4 May 2019 03:30:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOL9PGL++M/TGfkKUzHb4pdVlrM+FmRpkm/sTme3PisMyXA96eBAaoeyR/6uVPNzzC5w3B X-Received: by 2002:a17:902:84:: with SMTP id a4mr17943808pla.210.1556965842156; Sat, 04 May 2019 03:30:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556965842; cv=none; d=google.com; s=arc-20160816; b=hN9OmYYV0hwpBS+Cu+eZ8dUwvG0Q2MMZkzqXxTjfcw64YmbMKWzxvxSdC32Yof6z9Z f5xLEuAEqWzzU5amjU4k6F1mXrHZfC3xk/9VAIQZTpLictVbGEtQOFjUTVtFo9/v0N33 VnMrKSGNVf6AR0WfjFdI1DncvlB33R0Bk9dBB/WWA6M6xbQZdmByUS6zwdtn27y+MMPJ uTCQoEiacBeWPRDnoI/qyMWBAALWMHtDq+1Mj2AQngsTdIudhhA/X0aVXTrJHYXix+KE x5OAHWmB8Ys/qrJUJ7aH5Y7Zx9tl6uTbXN8Wd/k2IHgnwvbSKghbYumOL2pwi1B4WcGj VM8w== 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=8+0q06BtV8ly6EmD5qaRJlNRgyEl4V7CAaSLDa8fTrA=; b=X0tgT+hYEMRk20ix+65xVJkUeWltPo3r8blfQCPrCI/kLk+Nqmf1ehn0tpQ6bg/iVp S55yo2eCU07HdczQ4CvTJ0wp1yjd+x3cxED4CJLKK3/76TQYe6B6yvA7YV9bML+KSQT3 d5vMDsp/dlW1kKEop7jTF/29C/88qohDy8bQaRWT0StySMmiEPIllboOCRMb7EjD08SH YWZvqReBgSCEU5dmDfDNdj3e0fxJVFR0a3yamx8f04jyCBAT6J+drflM9G+aXiT2Rdlz BqNFdeQwfV68wpXiJKYtzENqWLPwgbDwCsUTSKeMJLMG54UW9dIjAySoxQ53VzAgXrOf pcZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hqvAhDgH; 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 y9si6409436pgh.55.2019.05.04.03.30.26; Sat, 04 May 2019 03:30:42 -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=hqvAhDgH; 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 S1728079AbfEDK1P (ORCPT + 99 others); Sat, 4 May 2019 06:27:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:37176 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728063AbfEDK1N (ORCPT ); Sat, 4 May 2019 06:27:13 -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 0D88320859; Sat, 4 May 2019 10:27:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556965632; bh=bdyM8oxbQkd8wXQ6tcNLjvAslpgVHezybpZhC3gVPT0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hqvAhDgH/H2TM0SN8sFF2lZ6zLbBc8eCzTD6jZwdrPCakwun7I3rEBRyFgD1GOFm1 BaA6ndOmr4IBPnDRi0lPPCrHmIvnefPKF+ABAu/z/9Oi4aIQyQmZJRxsOOebBF2S+G p87m7AsgorbX12A5ynxyvvjBfiPpDGh5l3gaaIb0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hangbin Liu , David Ahern , "David S. Miller" Subject: [PATCH 4.19 13/23] selftests: fib_rule_tests: print the result and return 1 if any tests failed Date: Sat, 4 May 2019 12:25:15 +0200 Message-Id: <20190504102451.973046799@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190504102451.512405835@linuxfoundation.org> References: <20190504102451.512405835@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 From: Hangbin Liu [ Upstream commit f68d7c44e76532e46f292ad941aa3706cb9e6e40 ] Fixes: 65b2b4939a64 ("selftests: net: initial fib rule tests") Signed-off-by: Hangbin Liu Reviewed-by: David Ahern Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/net/fib_rule_tests.sh | 6 ++++++ 1 file changed, 6 insertions(+) --- a/tools/testing/selftests/net/fib_rule_tests.sh +++ b/tools/testing/selftests/net/fib_rule_tests.sh @@ -27,6 +27,7 @@ log_test() nsuccess=$((nsuccess+1)) printf "\n TEST: %-50s [ OK ]\n" "${msg}" else + ret=1 nfail=$((nfail+1)) printf "\n TEST: %-50s [FAIL]\n" "${msg}" if [ "${PAUSE_ON_FAIL}" = "yes" ]; then @@ -245,4 +246,9 @@ setup run_fibrule_tests cleanup +if [ "$TESTS" != "none" ]; then + printf "\nTests passed: %3d\n" ${nsuccess} + printf "Tests failed: %3d\n" ${nfail} +fi + exit $ret