[COMMIT seastar master] seastar-addr2line: strip input lines

2 views
Skip to first unread message

Commit Bot

<bot@cloudius-systems.com>
unread,
Sep 9, 2022, 9:30:27 AMSep 9
to seastar-dev@googlegroups.com, Benny Halevy
From: Benny Halevy <bha...@scylladb.com>
Committer: Benny Halevy <bha...@scylladb.com>
Branch: master

seastar-addr2line: strip input lines

So not to get confused by a prefix a spaces

Signed-off-by: Benny Halevy <bha...@scylladb.com>

---
diff --git a/scripts/seastar-addr2line b/scripts/seastar-addr2line
--- a/scripts/seastar-addr2line
+++ b/scripts/seastar-addr2line
@@ -224,7 +224,7 @@ if args.test:
]
parser = BacktraceResolver.BacktraceParser()
for line, expected in data:
- res = parser(line)
+ res = parser(line.strip())
assert res == expected, f"{line}:\nExpected {expected}\nBut got {res}"
exit(0)

@@ -247,4 +247,4 @@ with BacktraceResolver(executable=args.executable, before_lines=args.before, con
verbose=args.verbose, cmd_path=args.addr2line) as resolve:
p = re.compile(r'\W+')
for line in lines:
- resolve(line)
+ resolve(line.strip())
Reply all
Reply to author
Forward
0 new messages