Linux Kernel Selftest development
 help / color / mirror / Atom feed
From: Willy Tarreau <w@1wt.eu>
To: Zhangjin Wu <falcon@tinylab.org>
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
Date: Sun, 2 Jul 2023 18:43:58 +0200	[thread overview]
Message-ID: <20230702164358.GB16233@1wt.eu> (raw)
In-Reply-To: <cover.1687156559.git.falcon@tinylab.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

  parent reply	other threads:[~2023-07-02 16:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-19  6:52 [PATCH v2 0/3] selftests/nolibc: improve test report support Zhangjin Wu
2023-06-19  6:56 ` [PATCH v2 1/3] selftests/nolibc: add a standalone test report macro Zhangjin Wu
2023-06-19  6:57 ` [PATCH v2 2/3] selftests/nolibc: always print the path to test log file Zhangjin Wu
2023-06-19  7:01 ` [PATCH v2 3/3] selftests/nolibc: restore the failed tests print Zhangjin Wu
2023-07-02 16:43 ` Willy Tarreau [this message]
2023-07-03 16:24   ` [PATCH v2 0/3] selftests/nolibc: improve test report support Zhangjin Wu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230702164358.GB16233@1wt.eu \
    --to=w@1wt.eu \
    --cc=arnd@arndb.de \
    --cc=falcon@tinylab.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=thomas@t-8ch.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox