[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
This commit is contained in:
Raphael Isemann 2019-09-24 08:41:10 +00:00
parent 3abbd43a59
commit 75c57b587d
1 changed files with 4 additions and 15 deletions

View File

@ -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'])