From 75c57b587d4f63486b2280df9ee37be8065a7353 Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Tue, 24 Sep 2019 08:41:10 +0000 Subject: [lldb][NFC] Relax completion tests for log command to make them pass on Linux The log channels change depending on platform, so listing them breaks on some platforms. Let's just check that the 'lldb' and 'dwarf' channels are there which are independent of platform. llvm-svn: 372701 --- .../test/functionalities/completion/TestCompletion.py | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py') diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py b/lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py index cb95c9497bc..efd80f93754 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py @@ -103,33 +103,22 @@ class CommandLineCompletionTestCase(TestBase): @skipIfFreeBSD # timing out on the FreeBSD buildbot def test_log_enable(self): - self.completions_match('log enable ', - ['dwarf', - 'gdb-remote', - 'kdp-remote', - 'lldb']) self.complete_from_to('log enable ll', ['lldb']) + self.complete_from_to('log enable dw', ['dwarf']) self.complete_from_to('log enable lldb al', ['all']) self.complete_from_to('log enable lldb sym', ['symbol']) @skipIfFreeBSD # timing out on the FreeBSD buildbot def test_log_enable(self): - self.completions_match('log disable ', - ['dwarf', - 'gdb-remote', - 'kdp-remote', - 'lldb']) self.complete_from_to('log disable ll', ['lldb']) + self.complete_from_to('log disable dw', ['dwarf']) self.complete_from_to('log disable lldb al', ['all']) self.complete_from_to('log disable lldb sym', ['symbol']) @skipIfFreeBSD # timing out on the FreeBSD buildbot def test_log_list(self): - self.completions_match('log list ', - ['dwarf', - 'gdb-remote', - 'kdp-remote', - 'lldb']) + self.complete_from_to('log list ll', ['lldb']) + self.complete_from_to('log list dw', ['dwarf']) self.complete_from_to('log list ll', ['lldb']) self.complete_from_to('log list lldb dwa', ['dwarf']) -- cgit v1.2.3