]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tools/rtla: Add test engine support for unexpected output
authorCrystal Wood <crwood@redhat.com>
Sun, 7 Sep 2025 02:23:24 +0000 (21:23 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Sat, 27 Sep 2025 08:53:21 +0000 (04:53 -0400)
commit3cd6b18d1025f2fca991c5d9543396892df3a8dd
treefafc6f4e4b957fdd43d6585f7a84ce9001e4e3dc
parentc4e30c22baa745173997c831011a95e03771e466
tools/rtla: Add test engine support for unexpected output

Add a check() parameter to indicate which text must not appear in the
output.

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.

Cc: John Kacur <jkacur@redhat.com>
Cc: Costa Shulyupin <costa.shul@redhat.com>
Link: https://lore.kernel.org/20250907022325.243930-7-crwood@redhat.com
Reviewed-by: Tomas Glozar <tglozar@redhat.com>
Signed-off-by: Crystal Wood <crwood@redhat.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/tracing/rtla/tests/engine.sh