From: Simon Glass Date: Sun, 23 Jun 2024 20:30:20 +0000 (-0600) Subject: trace: Update test to tolerate different trace-cmd version X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-favicon.png?a=commitdiff_plain;h=7f65e69c81c7b2cbec1cb2d719d6335312256904;p=u-boot.git trace: Update test to tolerate different trace-cmd version Some versions of trace-cmd (or some machines?) show one less dot in the CPU list. Signed-off-by: Simon Glass --- diff --git a/test/py/tests/test_trace.py b/test/py/tests/test_trace.py index 7c5696ce74..f41d4cf71f 100644 --- a/test/py/tests/test_trace.py +++ b/test/py/tests/test_trace.py @@ -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):