Skip to content

Commit ae8b261

Browse files
Merge pull request #3754 from adrian-prantl/cherry-pick-repl
Make Swift REPL pexpect test more robust by allowing extra control ch…
2 parents a987185 + ac17901 commit ae8b261

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lldb/test/API/lang/swift/completion/TestSwiftREPLCompletion.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@ def test_lldb_command_completion(self):
5252

5353
# Try completing something already complete.
5454
self.child.send(":b\t")
55-
self.child.expect_exact(":b ")
55+
# Use list of strings to work when there are embedded ansi sequences.
56+
self.child.expect_exact([":", "b "])
5657
self.child.sendline("")
5758

5859
# Try completing something that only has one result "vers" -> "version".
5960
self.child.send(":vers\t")
60-
# Use list of strings to work when there are embedded ansi sequences.
6161
self.child.expect_exact([":", "version"])
6262
self.child.sendline("")
6363

6464
# Try completing something that has multiple completions.
6565
self.child.send(":\t")
6666
self.child.expect_exact("Available completions:")
67-
self.child.expect_exact(":help")
67+
self.child.expect_exact([":", "help"])
6868
self.child.expect_exact("More (Y/n/a)")
6969
self.child.send("n")
7070
self.child.sendline("help")

0 commit comments

Comments
 (0)