[Lldb-commits] [PATCH] [TestCompletion] Spawn LLDB with '--no-use-colors'.

Siva Chandra sivachandra at google.com
Mon Dec 15 18:07:03 PST 2014


Hi zturner, clayborg,

TestCompletion was broken for Ubuntu (and probably for Debian also).
The issue was that the lldb prompt in color (which is the default
behavior) was confusing pexpect.

http://reviews.llvm.org/D6671

Files:
  test/functionalities/completion/TestCompletion.py

Index: test/functionalities/completion/TestCompletion.py
===================================================================
--- test/functionalities/completion/TestCompletion.py
+++ test/functionalities/completion/TestCompletion.py
@@ -166,7 +166,8 @@
         prompt = "(lldb) "
 
         # So that the child gets torn down after the test.
-        self.child = pexpect.spawn('%s %s' % (self.lldbHere, self.lldbOption))
+        self.child = pexpect.spawn(self.lldbHere,
+                                   [self.lldbOption] + ['--no-use-colors'])
         child = self.child
         # Turn on logging for input/output to/from the child.
         with open('child_send.txt', 'w') as f_send:

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6671.17314.patch
Type: text/x-patch
Size: 695 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20141216/55d04d84/attachment.bin>


More information about the lldb-commits mailing list