[PATCH] rteval: Update E2E tests to cover multiple recent changes

DORMANTno replies

From: Tomas Glozar <tglozar@redhat.com>
Date: 2026-09-10 11:21:04
Subsystem: the rest · Maintainer: Linus Torvalds

There have been multiple changes to the command line passed by rteval to
rtla:

- Commit f2c619a7ca08 ("rteval: Fix timerlat module for rtla short
  option parsing bug") changed the format of rteval's short options from
  "-o<arg>" and "-o=<arg>" to "-o <arg>".

- Commit 5153f0e854cf ("rteval: Refactor timerlat parsing and fix max
  line duplication bug") commented out "--no-summary" to get more
  information out of rtla.

- Commit daf3e54bae7c ("rteval: Fix timerlat stoptrace trace analysis
  capture in XML") makes rteval not pass "--no-aa" in runs with
  --timerlat-stoptrace.

Reflect the changes in E2E tests to make them pass again. Note that
some partial matches were extended with more arguments in the process
for the purpose of more clarity.

Signed-off-by: Tomas Glozar <tglozar@redhat.com>
---
 tests/e2e/measurement.t | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/tests/e2e/measurement.t b/tests/e2e/measurement.t
index 9d1f438..62c39eb 100644
--- a/tests/e2e/measurement.t
+++ b/tests/e2e/measurement.t
@@ -72,30 +72,30 @@ check "timerlat duration" \
 
 check "timerlat command, with --measurement-cpulist" \
   "--noload -d 1 --measurement-cpulist=0-1" 0 \
-  'Command: rtla timerlat hist -p100 -P f:95 -u -c0-1'
+  'Command: rtla timerlat hist -p 100 -P f:95 -u -c 0-1 -E 3500 --no-aa --dma-latency=0'
 
 check "timerlat command, with --measurement-run-on-isolcpus" \
   "--noload -d 1 --measurement-run-on-isolcpus" 0 \
-  'Command: rtla timerlat hist -p100 -P f:95 -u'
+  'Command: rtla timerlat hist -p 100 -P f:95 -u -c [0-9|-]+ -E 3500 --no-aa --dma-latency=0'
 
 check "timerlat command, with --timerlat-interval" \
   "--noload -d 1 --timerlat-interval 2000" 0 \
-  'Command: rtla timerlat hist -p2000 -P f:95'
+  'Command: rtla timerlat hist -p 2000 -P f:95 -u -c [0-9|-]+ -E 3500 --no-aa --dma-latency=0'
 
 check "timerlat command, with --timerlat-priority" \
   "--noload -d 1 --timerlat-priority 80" 0 \
-  'Command: rtla timerlat hist -p100 -P f:80 -u'
+  'Command: rtla timerlat hist -p 100 -P f:80 -u -c [0-9|-]+ -E 3500 --no-aa --dma-latency=0'
 
 check "timerlat command, with --timerlat-buckets" \
   "--noload -d 1 --timerlat-buckets 4000" 0 \
-  'Command: rtla timerlat hist -p100 -P f:95 -u -c[0-9|-]+ -E4000'
+  'Command: rtla timerlat hist -p 100 -P f:95 -u -c [0-9|-]+ -E 4000 --no-aa --dma-latency=0'
 
 check "timerlat command, with --timerlat-stoptrace" \
   "--noload -d 1 --timerlat-stoptrace 1" any \
-  'Command: rtla timerlat hist -p100 -P f:95 -u -c[0-9|-]+ -E3500 --no-summary --no-aa --dma-latency=0 -T1'
+  'Command: rtla timerlat hist -p 100 -P f:95 -u -c [0-9|-]+ -E 3500 --dma-latency=0 -T 1'
 
 check "timerlat command, with --timerlat-trace" \
   "--noload -d 1 --timerlat-stoptrace 1 --timerlat-trace trace.txt" any \
-  'Command: rtla timerlat hist -p100 -P f:95 -u -c[0-9|-]+ -E3500 --no-summary --no-aa --dma-latency=0 -T1 -t=trace.txt'
+  'Command: rtla timerlat hist -p 100 -P f:95 -u -c [0-9|-]+ -E 3500 --dma-latency=0 -T 1 -t trace.txt'
 
 test_end
-- 
2.55.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help