Author: teemperor Date: Tue Sep 24 01:41:10 2019 New Revision: 372701 URL: http://llvm.org/viewvc/llvm-project?rev=372701&view=rev Log: [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. Modified: lldb/trunk/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py Modified: lldb/trunk/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py?rev=372701&r1=372700&r2=372701&view=diff ============================================================================== --- lldb/trunk/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py (original) +++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py Tue Sep 24 01:41:10 2019 @@ -103,33 +103,22 @@ class CommandLineCompletionTestCase(Test @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']) _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits