Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4263858pxb; Mon, 21 Feb 2022 16:21:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkgmpVKcYkaAxCKlDgHm8VJXQYaYu5XhPkCb6FhA+e0GfZgTEL3gqCkab87fHIEXB6dQul X-Received: by 2002:a65:4845:0:b0:325:c147:146d with SMTP id i5-20020a654845000000b00325c147146dmr18343952pgs.140.1645489269762; Mon, 21 Feb 2022 16:21:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645489269; cv=none; d=google.com; s=arc-20160816; b=ajuQQ2Bcg2g52WsL/islxxYe+jdbeAqg6Izga2eh9NWcZ2NWAfBR/GvUPptGe6rtIY SHadpg6VrJHP1Gz2a1N4atkXaX2B9BamFAOVTJ1gtTi/1C8hYamcwKekdCcodYLz9dpX WT/G8QlfFEcc7AfFyR1ppyJvkj4LYzUFWAg7g5U2psstrkzItS2B+rxKJALs3GK/uyU/ mOWOY190EUtUGIh8nR67Ge2tt+7oih0upLMwjMO0AjI7VF0zxewEk/zWq2NM41DUooKs 4FBikBTAfp6AWphu8+4lmQ1ISMfCw9vd1rUorA12q9AFyO2d59D+LXi7NfPb22JyxCq/ LAEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9nLR4q7UHChVih+ZJM2ONYMZ9hI2uEuIfI5P9shPiSY=; b=tmnL5oLjMJMkJRJxMBsg5Lgk5AFNM+u0MsHNYSEgL0rsJMAnJ9j9WgpxNEv/nH3Pmb lxZ6/PhcXPmmiczG9+ah0mEKbtpcOHImpxXZY81MGKjqOZnUPPfcSDV6FSFSNla/Iii/ CvCBA0Q/5w0v6Up/0FSY+bs3w6t2j3/GfA3TPvQe7psbYXJV83BXjr9VyXGfKklFhnpV OkVAuwB6VMMXuQwkciiOvEfZscQIleBwdeAy0BJw51zMcQYfc5+soU56fX4Asb7hBIco HOTowpvg9Hzm7a/bB7GhvYWHXF4zh3o6WLALbQpdnuywyECllG297pIFwb7K59H6ZgJR r1KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j5LEHg1D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w10si11784970pgs.822.2022.02.21.16.20.53; Mon, 21 Feb 2022 16:21:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j5LEHg1D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352736AbiBUJ4f (ORCPT + 99 others); Mon, 21 Feb 2022 04:56:35 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:42384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352883AbiBUJsA (ORCPT ); Mon, 21 Feb 2022 04:48:00 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 762E326ACB; Mon, 21 Feb 2022 01:20:53 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1131A60F54; Mon, 21 Feb 2022 09:20:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBE2DC340E9; Mon, 21 Feb 2022 09:20:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645435252; bh=bJzUXvWr0rPpDE5ZvA4GkAP0B1xIa53SNskKhLA6iCY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j5LEHg1DfqKlXH7VnHvK8TnAjNMmXTL94A9/utKDs/Cbbv9/FsROTWmt7D3fV75VN y4on/O7jRygSDpYedL9BgWTxsZdow21o9n3wAojD8FAdgnh1E8qpMxWN7/8KXu3jdY zZbIzGsyAN1NZ2bmMmAPg+YsqWmSsQ5xJN+T93C8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hangbin Liu , Stefano Brivio , Pablo Neira Ayuso Subject: [PATCH 5.16 098/227] selftests: netfilter: fix exit value for nft_concat_range Date: Mon, 21 Feb 2022 09:48:37 +0100 Message-Id: <20220221084938.140106516@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220221084934.836145070@linuxfoundation.org> References: <20220221084934.836145070@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hangbin Liu commit 2e71ec1a725a794a16e3862791ed43fe5ba6a06b upstream. When the nft_concat_range test failed, it exit 1 in the code specifically. But when part of, or all of the test passed, it will failed the [ ${passed} -eq 0 ] check and thus exit with 1, which is the same exit value with failure result. Fix it by exit 0 when passed is not 0. Fixes: 611973c1e06f ("selftests: netfilter: Introduce tests for sets with range concatenation") Signed-off-by: Hangbin Liu Reviewed-by: Stefano Brivio Signed-off-by: Pablo Neira Ayuso Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/netfilter/nft_concat_range.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/testing/selftests/netfilter/nft_concat_range.sh +++ b/tools/testing/selftests/netfilter/nft_concat_range.sh @@ -1601,4 +1601,4 @@ for name in ${TESTS}; do done done -[ ${passed} -eq 0 ] && exit ${KSELFTEST_SKIP} +[ ${passed} -eq 0 ] && exit ${KSELFTEST_SKIP} || exit 0