Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1435338pxj; Fri, 4 Jun 2021 14:31:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxD+3YVkK4NVfSCH6lKAdyl2laMltkxkZ071tMjdyYuybRptAnze/amzFyQbmce8D04Sndf X-Received: by 2002:a17:906:2456:: with SMTP id a22mr6044918ejb.496.1622842312315; Fri, 04 Jun 2021 14:31:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622842312; cv=none; d=google.com; s=arc-20160816; b=m6qk1zb1hHvt056d2TxXnr7NW+BxgiMJQbJcr099AQJg132CNLcqA34iGYLlvvO5gp y0CNWqRn8+afPMEBynzFzXi94QhUty0LczkgdoVcEIffKgNn7dgkBLZSYOmXBORIAZkg GiGnovlf2YHmWhCePYcYE8js53wtHuWCZ14PiBza1U3OORZsCTe16pJaNrFV1yDVW8Sw Z5CWEJr1/I9OicS8vQ3nKbMwNtDnT0+fxnqnUWBRjrs0fJeSBtOKVziwbGQLjasCxpMy eaYr99BdJoluUfbi2ntpdT2mk+rwpdO0ueie1lO6E9KJgmm3YbZQXRQ3WotzbCDNPnsk TGHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Y82vlUdyWeMAr7e63Dj4j+wcqdc77Hu1B4Tw/o9SLMs=; b=FxeF/sDzdVKxVPuiWwk3NWCKQQcLTW6ENpEaNhgk5P5ABRF+p1stgISsGb5SWx2dAx C6am449KO+deedvm82qFpMm7EtMyhAC3G8vFAJL8qBL+Txs1sUl2BZhh6BbkSTZG1QXe 5G8TQBXuYnxRfTPHxjUqtOlqgniX49hx43mN/GT2S2W5LbzD4V2WHzRK0XCixH6trMgE CUDq3F9D0yKkzHBDWPr7XgxOBipbYLvLlzruwTiMPce/3Bt1Hp1Lx5tFBdDLFivJvnV7 p+n2bLDQFkKT9Rm5vX0wIKUvg34+hhYDgyu/0HNeM43S1aWfuDqj3GvdumIPNvuooE0T F7vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=aypJtca7; 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 j20si5311969eje.346.2021.06.04.14.31.29; Fri, 04 Jun 2021 14:31:52 -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=aypJtca7; 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 S229746AbhFDVcN (ORCPT + 99 others); Fri, 4 Jun 2021 17:32:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229668AbhFDVcM (ORCPT ); Fri, 4 Jun 2021 17:32:12 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F835C061767 for ; Fri, 4 Jun 2021 14:30:25 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id h16so6261275pjv.2 for ; Fri, 04 Jun 2021 14:30:25 -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=Y82vlUdyWeMAr7e63Dj4j+wcqdc77Hu1B4Tw/o9SLMs=; b=aypJtca7l/KpD4E2paDroJDyKsinPUWC0yUQNyIzZl97PiuWTz2R5MdpTk0hKEJuW7 Kcc0UXCRCYopCWV15JnD4HbUEqp7kTbswrmFf2W0oawdCIw03Zg26xdZyQcJnqFeOIW5 xE/MogjtklkQa6qgBcTfprYMKyD0QmumUjGb9jl+tMXNas53ZrWRXLbzD3kwOSVlACP1 KTq8Qqpzj39s5ARnPtF9BCTkAaQlMKQDh5NJtkSxbvn+bnIxH+hKPMGEf9/GRIcuNzKy oKlL6VKgGfZ3qEMk+Qdu2DVagZIUplPihiJ+cWPcTtvpNfBONJ26yQpDW1teceg451Rn OOsQ== 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=Y82vlUdyWeMAr7e63Dj4j+wcqdc77Hu1B4Tw/o9SLMs=; b=YWyVnntyZjfm0CBhEhVUHB0ZZJWazJxxqzuaeHR04wwzuD5FDoqI8hZMbK9HGXLKlK aNuyfOSu567AoSLSwmaytCQ6U4PPV4WFcmOJiBfnGCZgZzUyN5iQtTApNrDlpAQMBqJz mzzXVftyByr1ciPh6hX9dcCrD8/31yf9t60DP4SQJ5wOK3Q5UI8w/OsaO2+eCzLLA/VT lt/vclcyiJa0snE2JdF8+Gugv/7FqEL2auEi969aEaI7dYiG580be+xiEP+xmHOpSfTG KSa9BKCIUL1VVceknegrYehkHrJOpnyk6Kp+wdU7Ud8qdusQ+jqyF3glLVvgf7qEmTQ6 aICg== X-Gm-Message-State: AOAM533fUtJKhhBf4GuShFSSbtcMtj1Eg8Wlzh2fsD578L5AENsw77xc tVg+md2wD9Zxf6CxBOIyS0MB/2/24cx9ObMbr84luA== X-Received: by 2002:a17:903:1c3:b029:f4:9624:2c69 with SMTP id e3-20020a17090301c3b02900f496242c69mr6292705plh.51.1622842224869; Fri, 04 Jun 2021 14:30:24 -0700 (PDT) MIME-Version: 1.0 References: <20210528075932.347154-1-davidgow@google.com> <20210528075932.347154-2-davidgow@google.com> In-Reply-To: From: Brendan Higgins Date: Fri, 4 Jun 2021 14:30:13 -0700 Message-ID: Subject: Re: [PATCH v2 2/4] kunit: tool: Support skipped tests in kunit_tool To: Daniel Latypov Cc: David Gow , Alan Maguire , Shuah Khan , Marco Elver , KUnit Development , "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 1, 2021 at 8:46 AM Daniel Latypov wrote: > > On Fri, May 28, 2021 at 12:59 AM David Gow wrote: > > > > Add support for the SKIP directive to kunit_tool's TAP parser. > > > > Skipped tests now show up as such in the printed summary. The number of > > skipped tests is counted, and if all tests in a suite are skipped, the > > suite is also marked as skipped. Otherwise, skipped tests do affect the > > suite result. > > > > Example output: > > [00:22:34] ======== [SKIPPED] example_skip ======== > > [00:22:34] [SKIPPED] example_skip_test # SKIP this test should be skipped > > [00:22:34] [SKIPPED] example_mark_skipped_test # SKIP this test should be skipped > > [00:22:34] ============================================================ > > [00:22:34] Testing complete. 2 tests run. 0 failed. 0 crashed. 2 skipped. > > > > Signed-off-by: David Gow > > Reviewed-by: Daniel Latypov > > Some minor remarks, but this looks good to me. > > Though I'm surprised there has not been any bikeshedding done about > the color of the SKIPPED output. > So I'll throw an opinion out there. > I think yellow is fine, but I did somewhat recently change another > similar tool to go from yellow => cyan for SKIPPED. The motivation > there was to have a color for "flaky" tests that stood out, and the > most appropriate ANSI color seemed to be yellow (between green for > PASSED and red for FAILED). > And I don't know if KUnit tool will ever get to the point where we > automatically rerun tests on failure, as I can see an argument for > that logic living a layer above. I do have some sympathy for using a different color for each type of message. I am not arguing against cyan, but I am also OK with yellow. However, if we get to the point where we support flaky warnings, what if we used orange for flaky?