Received: by 10.223.185.116 with SMTP id b49csp5444603wrg; Wed, 7 Mar 2018 11:52:56 -0800 (PST) X-Google-Smtp-Source: AG47ELt9VovjuNqaNDjaQNcj5gFLVpFMJyLpPqvnNVHC9IOBb7qwv87mMICxIruBMJo+591bGBcC X-Received: by 2002:a17:902:8492:: with SMTP id c18-v6mr21443927plo.40.1520452376779; Wed, 07 Mar 2018 11:52:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520452376; cv=none; d=google.com; s=arc-20160816; b=MLO9BzR9yzn8Ex+0mibnpZjbBb9hT6imJpjfCW2bcI3bZcVpsLOtJMyWlVXigfu4SP E3Q4TOh5DKG3NBjxD1+Sd4UuMJb+4UZdj5Y5oIZMrfE15rh+1bvcN7ShfQPVW02g1w6Z L9YbJoVBnHXY46QiK+fm/hIWbXTOrgCzHvs0al0DWlOdb9qJ3Iq9/N0y2lshI01hNQOI F7RsnpWHSnpi+FxVGjk87+n6WFlRUL1GLSbg0V3PyM3jjEiORC0cRruIVftsjQzYXGnz GPMhksk+6pukxSaYrOgwl/4cuv7i85a3RpihWw5xhYQt935Rw6TUbl88ceJL9TpVkesK qcBw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:reply-to :arc-authentication-results; bh=IgkXCi0jhNBtDxI3WnxvfeSD2HqiATVUNhRjHRNNp0E=; b=IzERWGwLMpVKFkIgR6vKHF++AsuMTv/9i0zWrStVytqElZPWf4YKZj+6dOnx6B4jhk s9ILtUb4KiNDfZAZW3f8kOnGOATgeCI/6ZLlDgLpyQLd5kBldhQCo5r9GUx997iGTAnY heATE+thcY6GzvvRb1A/8HWtGCx06XYw6LplfmxZ8elmsCLS3zEkx0TS0hPup5195rsd CSN3FCZE61tLzRhvcnLZ9KK1AoR1pffzixEcvy/1aDh61wy/Yr8NI4pKvZmAt5Xgqf6y wLQXTmdZ7y9pBrA6nje+17rbkmRu1rWf1oiRYI2HOoLsqVdIIYfsiBs8Eyo9xRI9+aAy 49PA== ARC-Authentication-Results: i=1; mx.google.com; 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 l6si11784477pgp.249.2018.03.07.11.52.42; Wed, 07 Mar 2018 11:52:56 -0800 (PST) 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; 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 S935150AbeCGTvU (ORCPT + 99 others); Wed, 7 Mar 2018 14:51:20 -0500 Received: from mailout.easymail.ca ([64.68.200.34]:37260 "EHLO mailout.easymail.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935127AbeCGTvS (ORCPT ); Wed, 7 Mar 2018 14:51:18 -0500 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 2E716219B3; Wed, 7 Mar 2018 19:51:17 +0000 (UTC) Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo02-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lrU0vQwp7h-R; Wed, 7 Mar 2018 19:51:17 +0000 (UTC) Received: from mail.gonehiking.org (c-24-9-64-241.hsd1.co.comcast.net [24.9.64.241]) by mailout.easymail.ca (Postfix) with ESMTPA id 18315217CA; Wed, 7 Mar 2018 19:51:07 +0000 (UTC) Received: from [192.168.1.87] (shuah-xps.internal [192.168.1.87]) by mail.gonehiking.org (Postfix) with ESMTP id D72D29F143; Wed, 7 Mar 2018 12:51:06 -0700 (MST) Reply-To: shuah@kernel.org Subject: Re: [PATCH] selftest: net: reuseport_bpf_numa: don't fail if no numa support To: David Miller , anders.roxell@linaro.org Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan , Shuah Khan References: <20180306151004.31336-1-anders.roxell@linaro.org> <20180307.132500.40232199631094354.davem@davemloft.net> From: Shuah Khan Message-ID: <1a84294d-babc-e4ff-1e2f-9265450fee8f@kernel.org> Date: Wed, 7 Mar 2018 12:51:06 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180307.132500.40232199631094354.davem@davemloft.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/07/2018 11:25 AM, David Miller wrote: > From: Anders Roxell > Date: Tue, 6 Mar 2018 16:10:04 +0100 > >> The reuseport_bpf_numa test case fails there's no numa support. The >> test shouldn't fail if there's no support it should be skipped with a >> pass. >> >> Fixes: 3c2c3c16aaf6 ("reuseport, bpf: add test case for bpf_get_numa_node_id") >> Signed-off-by: Anders Roxell > > I don't know about this. > > The test did not pass. So it should not be "skipped with a pass". > You are right that "skipped with pass" is ambiguous. Don't we wish we could have done that in college :) > We were unable to run it at all, which means we don't know if it > would pass or fail. This means there is a third state besides > pass or fail which we must acknowledge and implement. > Several tests and test scripts treated test that can't be run as errors which is also ambiguous. Test user community requested that they would like Skips to be treated as pass. I think the reasoning is that on ARM systems, several tests get skipped - NUMA happens to be one and there are others. Also the configs. Not all config options might be enabled and tests need to be skipped. This seems to causing problems for test result analysis. So I made a call to say - okay let's treat Skip as pass to make it easier for analysis. Some test authors are okay with treating skip as pass. Some test authors don't like doing so. So we are currently in an inconsistent state. Maybe networking tests are the only ones that don't treat skip as pass at the moment. In any case, dependency checks are made from test shell scripts mainly and in some cases from test programs such as bpf_numa and when dependency isn't met, some tests treat it as an error and sone as skip-pass. Lots of test scripts check for !pass and call it fail. So changing skip as a distinct state requires some work in several tests. Not impossible, just effort. Kselftest infrastructure on the other hand maintains skip count and for tests skipped, also prints a distinct message for it. Originally skip was treated by the framework as distinct state implying that the test can't be run which makes more sense. Based on the request as stated above, I made a change to map KSFT_SKIP to KSFT_PASS. Several tests use the infrastructure. That said, I am open to adding a distinct state for skipped because can't be run. thanks, -- Shuah