Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4369933pxb; Mon, 21 Feb 2022 19:21:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYIHjZHS4AKE6fRKSWbe/o6wb0jk7cVUznzd8vWeHFJ1pV/+9N6BLx1ieAY6itGknbzQdZ X-Received: by 2002:a05:6402:40ce:b0:412:8c89:be27 with SMTP id z14-20020a05640240ce00b004128c89be27mr24214483edb.82.1645500079659; Mon, 21 Feb 2022 19:21:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645500079; cv=none; d=google.com; s=arc-20160816; b=Rr3N47xaU6K7B14ebqsoQsA+vvmGyGYpysHRd3uiF6mf5IMMhFX0VjDX1sswBX5djF Wqg8sha1deYMaJ+c7ZI3UEml6N23FU1dRV4AfKRFVsy/w6MKMPy6GPk6ojzVH3lYrgy7 mjbF9tm1OXK9o5Ls8hNnaddTBaLgyo+79IpWW8G7V9U9Xlpq4I8G3Htiq4sOY8aztW8M mESSmHucpihGGgBaBQU4xI2+cnnuCIQE1bE2CqAQPwr9gmmPqO5wVc6G3D5rX/BeQ2Ve 7U8ASUilP+2mWfu8ZBeSaRduIVHJr5aN+cGG2Jez9AT4OcjJ3GN6dqKPoSxAPeiBhMoA LE1Q== 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=GEISpa/SMZdJPSXldguzc50jLgRNQjkDYsn6xfDqypY=; b=AinH9R/WGwINUmnsEYdFn6/PYDFicXkkF2Y5yLX3SAkuzR/3PhXFbK/vs3RE/1n0D/ fci5fddsaO0jPK6DnBt5JaDP8bZf7Lls8/Ucj8ZIqVkHvvs+VRy1XwNln3L5SpL5P6JX qBvbqCKuUlQ0VRxoLDvqaeuU2SGvf1sWptd1cK7Wz6iZesl3s2MJV1FJL+hSijLciHgH LRIZsGIfCYanHoWx5F9g7+rupsltkCcjJr3QDOjNOgRZc+V+i1BLvo6LiyX5XWTtH4st 6iHXAO8A9a56eGnPb35rqHvMKFfrGR5NoVBp1VYYRNVrx9IWzLUkyZAZfF4x0CKOMDwn SuBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=x5llhhUR; 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 b9si10723615edz.481.2022.02.21.19.20.57; Mon, 21 Feb 2022 19:21:19 -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=x5llhhUR; 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 S1350553AbiBUJdm (ORCPT + 99 others); Mon, 21 Feb 2022 04:33:42 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:51036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349717AbiBUJ0a (ORCPT ); Mon, 21 Feb 2022 04:26:30 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04FD51EAE0; Mon, 21 Feb 2022 01:10:46 -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 sin.source.kernel.org (Postfix) with ESMTPS id 7895DCE0E86; Mon, 21 Feb 2022 09:10:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A7DEC340E9; Mon, 21 Feb 2022 09:10:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645434643; bh=X3t64FDN0xB/+PCoUxOpRXLTGFWqM9dN/ujkezX3ZVU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x5llhhUR/D9O78sv+msuC8JabKjpmMGATA/ZtCU04qKKeQElw9/T9a1f0/OR2rxXo X10eNjNe7tGBR1W5OKzQV4+C4yuukKEY7uRRqUd7BEdV4ErWqOtZPCee0rt3J430Iw 1V1cmQDXXocrYoXMS+ubqLE7OOSSISQjqlaECGdY= 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.15 078/196] selftests: netfilter: fix exit value for nft_concat_range Date: Mon, 21 Feb 2022 09:48:30 +0100 Message-Id: <20220221084933.548792789@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220221084930.872957717@linuxfoundation.org> References: <20220221084930.872957717@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 @@ -1583,4 +1583,4 @@ for name in ${TESTS}; do done done -[ ${passed} -eq 0 ] && exit ${KSELFTEST_SKIP} +[ ${passed} -eq 0 ] && exit ${KSELFTEST_SKIP} || exit 0