Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1073905ybt; Fri, 19 Jun 2020 23:47:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgm3SJ/xqtq2dKepOrSITWYhnGOcGm3VV0mDILiynGBfp8K1QxJqW1LOUuHbMPo3Y9Xx86 X-Received: by 2002:a05:6000:87:: with SMTP id m7mr7953137wrx.306.1592635637207; Fri, 19 Jun 2020 23:47:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592635637; cv=none; d=google.com; s=arc-20160816; b=zglK0fAWBUEe9mEIn+CKOz4isOuS1ndyFhiI4K7oIrO2P/kjSd1P6iltxsE3DHHIJ5 vFRGjnIhV5hAApn6GJZuxzN3WykBlVXUoRNO03SrALYh6odifme7u39BhX4yGXHZ1JVT f7Q/RKnmLmGeTGRGA96DlRizf1N8ctjG/CuyuwZFwd/Wl6rdj8S9xEKc5s0GrkrhqhjF kEzEYjyLebUpS0Ts3Z5Hoeqs2sT9xzxCHQGJ5n5BMl0hnjCmxjUrRMtnSMz3e9gGM3jd 28X3eNflHRAn0ajPJBdpRvqkehvRnd7PKCebXg/uIM2qX3MhBdFx+o7xj/N22Zz32sFo jqaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=nuqIBJcEfQ5YejHXKkH59txUGkRqecLMXyxE/1IPdkk=; b=BaMqnxy6TTzJNO+VWkX+5lE/+0LQe3tv/fBSHZ0FLkbk9gfRjWqXbweJo5gx7HiNoA gdqUNHNd4Vg9pUWVijDnN0HWCCT2vfKI4/KOo+RQCUGtqJeiAqieJ/dfYMa7Uln7Fy3R 598xzuMaAqBBH278wCxeT8oE4SZ/lB9qOU9s18VBDHZI6IOcTsQB6SxWCBJWKBIANgmH l03xEoO/4AxAfUhmVr9tyfUs7uVYCRsmsdmL03pgcWSPsXAkw3L+88Ipl3DNaBBSKDSC Mbt+MjNRZCBmBXG+LL+Hz32xX7T07pddlUADha/BixwpzPiTPdKjUQwhJETe25Gom5yh JXyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=t+nkAWVD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n4si5088198eje.267.2020.06.19.23.46.54; Fri, 19 Jun 2020 23:47:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=t+nkAWVD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726517AbgFTGpL (ORCPT + 99 others); Sat, 20 Jun 2020 02:45:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725969AbgFTGpK (ORCPT ); Sat, 20 Jun 2020 02:45:10 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29EFBC0613EE for ; Fri, 19 Jun 2020 23:45:10 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id p19so296908wmg.1 for ; Fri, 19 Jun 2020 23:45:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nuqIBJcEfQ5YejHXKkH59txUGkRqecLMXyxE/1IPdkk=; b=t+nkAWVDInMtkOcuQjp92ZOQUc1IuMFxgyEboiybhrYvZWoh7q8LUr77tTUAeuXJMe Z0c2rRVzRqxJsr27Q1uuzAbLvXBm89jXnexCcqb3+uui3x2XZgl9s/suCXtMX8kIMORP /HaDwMnLpd3LIvu//Ci+o1/LKX+QbutwsQnO8okTCN5S+UEkUoWtApZ44xBeVawrCr0U jBjoYlEaJuw8beWnZgo605MuWPFluoHXQ7r7qjlo1v1J2d7RZGAkZ1AsJBwOuqx02p3k 7gddTIo0Kvi5en3QzTINvAc5Mf8CD0ezYQUl9tdYA0RztGMaxLB+elN4/3MeQT+neeCd V2aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nuqIBJcEfQ5YejHXKkH59txUGkRqecLMXyxE/1IPdkk=; b=rxHDkCw5R4TuPHHU8lMaSOjzkiZbz9jv/KxnCuRHZcz/lFDI7q8UQ0RXn1u5iYTHey +PAcBQktQwyWt1YjspIKf+l48EEZ7VOnS9U4Ncv3nlwMGaiYH120bFn5IdKCkCCmVptI A4Sy3AhLIIvMD9gcQdiJjeeUp/DfKd+ngIA8YdY8U+iHfPoNtkWvbaQXjOSgHyHbq+XV RjWVBWn2/pFCLUlNzCsWuTuaazXuzv9l0Q3dctSXnogtgopHGmWxHr3+9UzIGIyZjaif csLFeNSRcTjSSlwTFzeHSbBmATs8D+QdjGENXbwTYjsxw8dBPI4j9rS2yyJxRExNVWwl yzCg== X-Gm-Message-State: AOAM532kfgsbt1vJL4thAXIKrFUksYM29WzM2Ehkgf44vEMqK9RX/tCZ d0Jc8x4JXhRcBGnf9mtd1ty6W4pZWfxZ284SnrjKTQ== X-Received: by 2002:a1c:a444:: with SMTP id n65mr6939881wme.99.1592635507940; Fri, 19 Jun 2020 23:45:07 -0700 (PDT) MIME-Version: 1.0 References: <202006141120.96FF8C5@keescook> <7161fadb-45ba-c4c0-8bbb-cb47d2dd0265@redhat.com> In-Reply-To: From: David Gow Date: Sat, 20 Jun 2020 14:44:56 +0800 Message-ID: Subject: Re: RFC - kernel selftest result documentation (KTAP) To: Frank Rowand Cc: Paolo Bonzini , "Bird, Tim" , Kees Cook , "shuah@kernel.org" , "linux-kselftest@vger.kernel.org" , Brendan Higgins , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 20, 2020 at 1:58 AM Frank Rowand wrote: > > On 2020-06-16 07:08, Paolo Bonzini wrote: > > On 15/06/20 21:07, Bird, Tim wrote: > >>>> Finally, > >>>> - Should a SKIP result be 'ok' (TAP13 spec) or 'not ok' (current kselftest practice)? > >>>> See https://testanything.org/tap-version-13-specification.html > >>> > >>> Oh! I totally missed this. Uhm. I think "not ok" makes sense to me "it > >>> did not run successfully". ... but ... Uhhh ... how do XFAIL and SKIP > >>> relate? Neither SKIP nor XFAIL count toward failure, though, so both > >>> should be "ok"? I guess we should change it to "ok". > > > > See above for XFAIL. > > > > I initially raised the issue with "SKIP" because I have a lot of tests > > that depend on hardware availability---for example, a test that does not > > run on some processor kinds (e.g. on AMD, or old Intel)---and for those > > SKIP should be considered a success. > > No, SKIP should not be considered a success. It should also not be considered > a failure. Please do not blur the lines between success, failure, and > skipped. I agree that skipped tests should be their own thing, separate from success and failure, but the way they tend to behave tends to be closer to a success than a failure. I guess the important note here is that a suite of tests, some of which are SKIPped, can be listed as having passed, so long as none of them failed. So, the rule for "bubbling up" test results is that any failures cause the parent to fail, the parent is marked as skipped if _all_ subtests are skipped, and otherwise is marked as having succeeded. (Reversing the last part: having a suite be marked as skipped if _any_ of the subtests are skipped also makes sense, and has its advantages, but anecdotally seems less common in other systems.) The other really brave thing one could do to break from the TAP specification would be to add a "skipped" value alongside "ok" and "not ok", and get rid of the whole "SKIP" directive/comment stuff. Possibly not worth the departure from the spec, but it would sidestep part of the problem. Cheers, -- David