Skip to content

Commit 28ae880

Browse files
committed
Debug CI part 2
1 parent 5cc1359 commit 28ae880

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lldb/test/API/lang/swift/exception_breakpoint_recognizer/TestSwiftExceptionBreakpointRecognizer.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def test(self):
1212
bp = target.BreakpointCreateForException(lldb.eLanguageTypeSwift, False, True)
1313

1414
log_file = self.getBuildArtifact("symbol.log")
15-
self.runCmd("log enable lldb symbols -f {log_file}")
15+
self.runCmd("log enable lldb symbol -f {log_file}")
1616

1717
# First breakpoint in an untyped throws function.
1818
_, process, _, _ = lldbutil.run_to_breakpoint_do_run(self, target, bp)
@@ -29,7 +29,8 @@ def test(self):
2929
self.ci.HandleCommand("frame recognizer info 0", r)
3030
info += r.GetOutput()
3131
with open(log_file) as f:
32-
info += f.read()
32+
log_lines = f.readlines()
33+
info += "".join(line for line in log_lines if "recognize" in line)
3334
self.assertIn("qowieoiuqweoiq", info)
3435

3536
# Second breakpoint in an typed throws function.
@@ -47,5 +48,6 @@ def test(self):
4748
self.ci.HandleCommand("frame recognizer info 0", r)
4849
info += r.GetOutput()
4950
with open(log_file) as f:
50-
info += f.read()
51+
log_lines = f.readlines()
52+
info += "".join(line for line in log_lines if "recognize" in line)
5153
self.assertIn("qowieoiuqweoiq", info)

0 commit comments

Comments
 (0)