Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp25086164rwd; Sun, 2 Jul 2023 10:01:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlFSJ0IuYEZvM3ltOLjr02dZcfBAlhCxAcSF1CXS5Ka602IhqR/g/7fGXngyBYkiQG3WhGe8 X-Received: by 2002:a05:6a00:1816:b0:66a:2ff1:dee4 with SMTP id y22-20020a056a00181600b0066a2ff1dee4mr9480927pfa.2.1688317283578; Sun, 02 Jul 2023 10:01:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688317283; cv=none; d=google.com; s=arc-20160816; b=G7bCHn5hvLLXSvwsjSj6Qi4xuq8chfnP8/aleJK8PVrlE4GWAZheh0eVQRR9T+FUGn rrBTA2eN0S2g1zSelRSV00NSP/60Nk1mzs38kivigWZEHMZuv2ysWCCImtq1e8KQSSBN Fj4OcvIjE2c+CmJuQtCsyFds9CBgAgYeQ7lM6AI8ZWDAID31qfdhkuqk4+9YJ/rtNJ2g Lnpe0SKA8dqMkFu+mbjk1efRg/q6x+b8Jp5V1yGfJh1XVvyI5zm3oM4lKPqxyJYJZ4z7 UKnRNfGbizyM4LF6swv2CZXHSHxK3V5qC1SFxG/E3l3O0pwEG3eRa3i15XtRpAUPSgHr goDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=NzISKGutvejraZiwbVIWfeDgl9L/mlpxMe8OfPYLHHo=; fh=eiejBqRmnl2pzyngCzb7utfw/Pf26tIPKWTW6SFyo0s=; b=Blk01MfOg3n0CL/e0CWXKVXyg0JImO+Qs5V1Qj0w3rYh/jPb0ap2ZQctQDmPi9c7lq pCzanLWPqU/91ntlf1urAxvH2rtZZrL5FR53IWJUbmZrqKNiUvVRaG0qvIAmy8pjR0R7 oKErCuaZbX3FYE7GuiG54Zdp1+WHILAxZOHm2J0gvv57KE7SykFoKzkNmE1ZFw9P1xK9 qKbdR2kbKFSq/R4Ad8vH4XXtJsf0oU5NPbTMGO872y+iw43d4IkiUG1xZJY8/itnWV3N h++xm1YZytOBMSHm1nBIK0XUdmMuiixwS65K6ymWJjL65l6a9nZ23lfFNEtpUzskq7iI 8Zkw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s7-20020a63f047000000b00553b9b18882si16991060pgj.574.2023.07.02.10.01.06; Sun, 02 Jul 2023 10:01:23 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229638AbjGBQoM (ORCPT + 99 others); Sun, 2 Jul 2023 12:44:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229516AbjGBQoK (ORCPT ); Sun, 2 Jul 2023 12:44:10 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2635812A; Sun, 2 Jul 2023 09:44:08 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 362Ghw98016406; Sun, 2 Jul 2023 18:43:58 +0200 Date: Sun, 2 Jul 2023 18:43:58 +0200 From: Willy Tarreau To: Zhangjin Wu Cc: arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, thomas@t-8ch.de Subject: Re: [PATCH v2 0/3] selftests/nolibc: improve test report support Message-ID: <20230702164358.GB16233@1wt.eu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 Hi Zhangjin, On Mon, Jun 19, 2023 at 02:52:31PM +0800, Zhangjin Wu wrote: > Hi, Willy > > Here is the v2 of our old patchset about test report [1]. > > The trailing '\r' fixup has been merged, so, here only resend the left > parts with an additional patch to restore the failed tests print. > > This patchset is rebased on the dev.2023.06.14a branch of linux-rcu [2]. > > Tests have passed for 'x86 run': > > 138 test(s) passed, 0 skipped, 0 failed. > See all results in /labs/linux-lab/src/linux-stable/tools/testing/selftests/nolibc/run.out (...) > 2. selftests/nolibc: always print the path to test log file > > Always print the path to test log file, but move it to a new line to > avoid annoying people when the test pass without any failures. I'm still really missing the (s+f > 0) test I added which was a time saver for me, because I could trivially check in the output reports which ones were totally OK and which ones required attention. Sure I could also start to grep for "passed," | grep -v " 0 skipped, 0 failed" but that's quite a pain, really. I'm going to merge your series anyway otherwise we'll continue to bikeshed for many weeks and I know how annoying it is to keep unmerged series. But I would like that we find a solution that satisfies everyone. Maybe one possibility would be to add a "status" at the end of the line that emits "success", "warning", "failure" depending on the highest level reached like this: 138 test(s) passed, 0 skipped, 0 failed => status: success 136 test(s) passed, 2 skipped, 0 failed => status: warning 136 test(s) passed, 1 skipped, 1 failed => status: failure This way it's easy to grep -v "status: success" or grep "status: failure" to instantly get the corresponding details and also grep for them from multiple files. Thanks! Willy