Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26440733rwd; Mon, 3 Jul 2023 09:41:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlFYIkFCm05vEkZBhe2OpHfZZHeYeNYGaO23QqzOuoVzrKpzu8M833DcLcsPGQMqoeUHa5cg X-Received: by 2002:a17:902:7245:b0:1b8:9db5:2ec1 with SMTP id c5-20020a170902724500b001b89db52ec1mr1275858pll.67.1688402473711; Mon, 03 Jul 2023 09:41:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688402473; cv=none; d=google.com; s=arc-20160816; b=zREDMmU/jwmn+wKAJ8wtXMU2rxBtE5rN+5DNWCN6gDfkyyOj5+5XifEWCH3lMJouua gzOmMyv+oEQL8V/YgHfFIQEqJXPgD4Q8clccXmnP8PMgL8/hBl6lanWGWXCTk+Ac3VOc ZFxcS8P2d0OQNEMdHXP4h4xsmta25yTxOUp8WY5DEfE+OFSXB0ixacjI1lVxS5DguQ5m 6VKOifp98cEV1ZLgnLToCNCwVmZhwNSPb8kytZPBDKpekpJx+WKli0kRU4Q3kR1nWafW 9d77GljmkygOhwyekf1loqg7ahfN7xsiWpgJRCTzBBhUiKsb4Y7TNOTtCsAjiAQ9YwAB Z2OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=ZuSoradFTWDwR1xmvBtYql2TBoZQmE6FD3wSNwzpnkM=; fh=bgvh73SmfsaVW+jpi1rDXVE+bao4Kbe4AiDGfn0JMyI=; b=SS4cgFHB6gzFyv3c+u9co3Lia/meqoTT7DeUBlYgXora06VCnerPf3IYJjyyZg2pje mTty3hAwiv2vyG/YQ4yAZKoUBOD7UHNfTSpdNL4/Hs9M+jmyI7fq6a9XK5maOPSOgddK 6ZMlEfLSt+v+ZuNzad/GiHbhCKm2hUHcsBD8Z/2n/fgs63gG/xT/B4fbi/BfI6pP0pMU k2Nx8v69UD58yPvJyrktF7QQ4lxxXKZN54ApeMz4gPjd+agdT9jPGvXImYbPXQigikhS 3TapwCw2uZ9thYGJlQZ4uVNxfG6B2HejCVCepo+CrYSp8LZEVRtaz6vhGc440LuByMw/ ZhwQ== 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 z2-20020a170903018200b001b891259eeasi3592896plg.580.2023.07.03.09.40.58; Mon, 03 Jul 2023 09:41:13 -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 S230359AbjGCQY1 (ORCPT + 99 others); Mon, 3 Jul 2023 12:24:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229873AbjGCQYZ (ORCPT ); Mon, 3 Jul 2023 12:24:25 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 652FDAD; Mon, 3 Jul 2023 09:24:23 -0700 (PDT) X-QQ-mid: bizesmtp67t1688401452tgj7f4a7 Received: from linux-lab-host.localdomain ( [119.123.131.49]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 04 Jul 2023 00:24:11 +0800 (CST) X-QQ-SSF: 01200000000000D0W000000A0000000 X-QQ-FEAT: D2GZf6M6C/hH0l4kCU7hMc924/RcPhXPmkWT1yB3BBWKtKAO0pLuY5DdbvH8x Pv6apJoufyBtte0bfkRP9t12DoJyQY9PCs+ZHTw5Rd3de6p8fo95noBbHdaNC+rxtjil1js XJo7NOnn8bYy4BBHXfOEJM780LruGVWDSVaULv3Ir99bPmPYqFkozTmi7/e9wcvwjSZA9qu ogt2VX5hNGs5aKP+A0RqmKfZWPevp/Gdda3PecuhZ2WYupuFH8ZhZqJuol0vZcxt7BlvRva s7X5h72shMJuatJATryiItOnMgCsz0WKm4h+VlrH1yvNt9I9pLTUfAJ637d5IQPZyZ7hwaE hszDOjMisWMRDwV1Tk= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 6504902335280427982 From: Zhangjin Wu To: w@1wt.eu Cc: arnd@arndb.de, falcon@tinylab.org, 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 Date: Tue, 4 Jul 2023 00:24:10 +0800 Message-Id: <20230703162410.502173-1-falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230702164358.GB16233@1wt.eu> References: <20230702164358.GB16233@1wt.eu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,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 > 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. Ok, it will be a further step, based on your new awk script, it is not that hard. This should work: REPORT ?= awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*$$/{f++;print} /\[SKIPPED\][\r]*$$/{s++} \ END{ printf("\n%d test(s): %d passed, %d skipped, %d failed => status: ", p+s+f, p, s, f); \ if (f) printf("failure\n"); else if (s) printf("warning\n"); else printf("success\n");; \ printf("\nSee all results in %s\n", ARGV[1]); }' It reports something like this: ... Total number of errors: 0 Exiting with status 0 143 test(s): 140 passed, 3 skipped, 0 failed => status: warning See all results in /labs/linux-lab/src/linux-stable/tools/testing/selftests/nolibc/build/x86/run.out Two newlines are added around the summary line, so, it is not crowded as before. If this is ok, will send a new patch on your new branch. Thanks very much. Best regards, Zhangjin > > Thanks! > Willy