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

Siva Chandra sivachandra at google.com
Fri Dec 19 14:37:23 PST 2014

Author: sivachandra
Date: Fri Dec 19 16:37:23 2014
New Revision: 224642

URL: http://llvm.org/viewvc/llvm-project?rev=224642&view=rev
[TestCompletion] Spawn LLDB with '--no-use-colors'.

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.

Test Plan: ""

Reviewers: zturner, clayborg

Reviewed By: clayborg

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D6671


Modified: lldb/trunk/test/functionalities/completion/TestCompletion.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/completion/TestCompletion.py?rev=224642&r1=224641&r2=224642&view=diff
--- lldb/trunk/test/functionalities/completion/TestCompletion.py (original)
+++ lldb/trunk/test/functionalities/completion/TestCompletion.py Fri Dec 19 16:37:23 2014
@@ -166,7 +166,8 @@ class CommandLineCompletionTestCase(Test
         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:

More information about the lldb-commits mailing list