summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiva Chandra <sivachandra@google.com>2014-12-19 22:37:23 +0000
committerSiva Chandra <sivachandra@google.com>2014-12-19 22:37:23 +0000
commitf010d234972087b1967c271b9064ea46cf139253 (patch)
treef2c4dea66db8128cd6b131b3525105eb048d9b81
parentf2acbbaf22674406a1d482cc15784cb25e020d2d (diff)
downloadbcm5719-llvm-f010d234972087b1967c271b9064ea46cf139253.tar.gz
bcm5719-llvm-f010d234972087b1967c271b9064ea46cf139253.zip
[TestCompletion] Spawn LLDB with '--no-use-colors'.
Summary: 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: "http://199.223.233.39:8011/lldb-try-clang-build-clang-test/" Reviewers: zturner, clayborg Reviewed By: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D6671 llvm-svn: 224642
-rw-r--r--lldb/test/functionalities/completion/TestCompletion.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/test/functionalities/completion/TestCompletion.py b/lldb/test/functionalities/completion/TestCompletion.py
index 32357b93dd9..4b3c64dcd8f 100644
--- a/lldb/test/functionalities/completion/TestCompletion.py
+++ b/lldb/test/functionalities/completion/TestCompletion.py
@@ -166,7 +166,8 @@ class CommandLineCompletionTestCase(TestBase):
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:
OpenPOWER on IntegriCloud