]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rtla/tests: Use negative match when testing --aa-only
authorTomas Glozar <tglozar@redhat.com>
Thu, 23 Apr 2026 13:05:53 +0000 (15:05 +0200)
committerTomas Glozar <tglozar@redhat.com>
Mon, 18 May 2026 09:00:51 +0000 (11:00 +0200)
For testing the -a/--auto option in timerlat tool, the string "analyzing
it" is matched against to make sure auto-analysis was triggered.

Use the same string as a negative match for --aa-only option test.

Reviewed-by: Wander Lairson Costa <wander@redhat.com>
Link: https://lore.kernel.org/r/20260423130558.882022-5-tglozar@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
tools/tracing/rtla/tests/timerlat.t

index fb60022aaa649e538785ca0a70466720e21759de..f47a82c115c7c13a149224bf417ef73803c8409e 100644 (file)
@@ -38,7 +38,7 @@ check_top_hist "dump tasks" \
 check "print the auto-analysis if hits the stop tracing condition" \
        "timerlat top --aa-only 5" 2
 check_top_hist "disable auto-analysis" \
-       "timerlat TOOL -s 3 -T 10 -t --no-aa" 2
+       "timerlat TOOL -s 3 -T 10 -t --no-aa" 2 "" "analyzing it"
 check_top_q_hist "verify -c/--cpus" \
        "timerlat TOOL -c 0 -d 10s -T 1 --on-threshold shell,command=tests/scripts/check-cpus.sh" 2 "^Affinity of threads: 0$"