From: Crystal Wood <crwood@redhat.com>
To: Tomas Glozar <tglozar@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>,
linux-trace-kernel@vger.kernel.org,
John Kacur <jkacur@redhat.com>,
Costa Shulyupin <costa.shul@redhat.com>
Subject: Re: [PATCH 6/7] tools/rtla: Add test engine support for unexpected output
Date: Fri, 29 Aug 2025 16:34:56 -0500 [thread overview]
Message-ID: <d11da952ca2ef28e3427fd09972cc02e727606f3.camel@redhat.com> (raw)
In-Reply-To: <CAP4=nvQthvoE9tGPqbXmk3dP_XJjmgkh_wXDd9JiVTTGvM3nKQ@mail.gmail.com>
On Thu, 2025-08-28 at 10:09 +0200, Tomas Glozar wrote:
> čt 21. 8. 2025 v 5:58 odesílatel Crystal Wood <crwood@redhat.com> napsal:
> >
> > Simplify the code so that we can print failures as they happen rather
> > than trying to figure out what went wrong after printing "not ok". This
> > also means that "not ok" gets printed after the info rather than before,
> > which seems more intuitive anyway.
> >
>
> This change is causing some formatting issues, e.g.:
>
> tests/hwnoise.t ... 2/6 # Output match failed: "rtla hit stop tracing"
> # Error iterating on events
> # Oops, error disabling tracer
> #
> # exit code 1
> tests/hwnoise.t ... 3/6 not ok 3 - set the automatic trace mode
>
> (the comment is on the same line as the previous test)
I'm not seeing the "tests/hwnoise.t ... 2/6" part. What is printing
that?
> Furthermore, it's standard to first print "not ok" and then the
> comments, see the documentation to Test::More [1], so I think we
> should keep that.
>
> [1] https://metacpan.org/pod/Test::More#ok
https://xkcd.com/927/ :-P
I'm not a Perler, so I didn't recognize it as anything standardized.
Still seems backwards to me, both in terms of making it easier to see
which test failed, and in terms of being a pain to implement. And we
don't even get the benefit of seeing the test name printed before it
runs, to make it easier to see what's taking a long time.
Seems like Linux uses a variant of this, though:
Documentation/dev-tools/ktap.rst
I'll fix it, hopefully by sticking the error output into a variable or
something rather than duplicating logic. Or should we be using some
existing test infrastructure?
-Crystal
next prev parent reply other threads:[~2025-08-29 21:35 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-21 3:57 [PATCH 0/7] tools/rtla: Code consolidation and osnoise actions Crystal Wood
2025-08-21 3:57 ` [PATCH 1/7] tools/rtla: Consolidate common parameters into shared structure Crystal Wood
2025-08-26 14:15 ` Tomas Glozar
2025-08-21 3:57 ` [PATCH 2/7] tools/rtla: Move top/hist union members elsewhere Crystal Wood
2025-08-26 13:58 ` Tomas Glozar
2025-08-26 19:42 ` Crystal Wood
2025-08-27 12:55 ` Tomas Glozar
2025-08-26 18:05 ` Costa Shulyupin
2025-08-26 20:39 ` Crystal Wood
2025-08-27 6:51 ` Tomas Glozar
2025-08-21 3:57 ` [PATCH 3/7] tools/rtla: Create common_apply_config() Crystal Wood
2025-08-27 11:33 ` Tomas Glozar
2025-08-29 20:35 ` Crystal Wood
2025-08-21 3:57 ` [PATCH 4/7] tools/rtla: Consolidate code between osnoise/timerlat and hist/top Crystal Wood
2025-08-27 13:34 ` Tomas Glozar
2025-08-29 20:46 ` Crystal Wood
2025-08-21 3:57 ` [PATCH 5/7] tools/rtla: Fix -A option name in test comment Crystal Wood
2025-08-28 6:52 ` Tomas Glozar
2025-08-21 3:57 ` [PATCH 6/7] tools/rtla: Add test engine support for unexpected output Crystal Wood
2025-08-28 8:09 ` Tomas Glozar
2025-08-29 21:34 ` Crystal Wood [this message]
2025-09-01 12:50 ` Tomas Glozar
2025-09-02 19:08 ` Crystal Wood
2025-09-03 16:15 ` Tomas Glozar
2025-08-21 3:57 ` [PATCH 7/7] tools/rtla: Add remaining support for osnoise actions Crystal Wood
2025-08-28 10:57 ` Tomas Glozar
2025-08-29 21:47 ` Crystal Wood
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=d11da952ca2ef28e3427fd09972cc02e727606f3.camel@redhat.com \
--to=crwood@redhat.com \
--cc=costa.shul@redhat.com \
--cc=jkacur@redhat.com \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=tglozar@redhat.com \
/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;
as well as URLs for NNTP newsgroup(s).