]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
trace: Update test to tolerate different trace-cmd version
authorSimon Glass <sjg@chromium.org>
Sun, 23 Jun 2024 20:30:20 +0000 (14:30 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 4 Jul 2024 15:25:20 +0000 (09:25 -0600)
Some versions of trace-cmd (or some machines?) show one less dot in the
CPU list.

Signed-off-by: Simon Glass <sjg@chromium.org>
test/py/tests/test_trace.py

index 7c5696ce747ff89a2f758baed11155c02fb92585..f41d4cf71f0b2b683fa62e98d8d2b5371befee8a 100644 (file)
@@ -12,7 +12,7 @@ import u_boot_utils as util
 TMPDIR = '/tmp/test_trace'
 
 # Decode a function-graph line
-RE_LINE = re.compile(r'.*0\.\.\.\.\. \s*([0-9.]*): func.*[|](\s*)(\S.*)?([{};])$')
+RE_LINE = re.compile(r'.*0\.\.\.\.\.? \s*([0-9.]*): func.*[|](\s*)(\S.*)?([{};])$')
 
 
 def collect_trace(cons):