Prevent lldb-vscode tests from source lldbinit file
authorJeffrey Tan <jeffreytan@fb.com>
Fri, 30 Sep 2022 19:11:58 +0000 (12:11 -0700)
committerJeffrey Tan <jeffreytan@fb.com>
Tue, 11 Oct 2022 22:43:35 +0000 (15:43 -0700)
commitef25a217266aaf3b6df68ac155537e3a1171dccf
tree4a0c60bf283a71f60bb5537781b33b670786582b
parent0f1a51e17353f837ed693b9798d1dbb0b8fd5fa0
Prevent lldb-vscode tests from source lldbinit file

lldb-vscode is hard-coded to source .lldbinit file which causes some tests to
fail on my machine.
This patch adds a new option to control this:
1. vscode.py and lldb-vscode tests will not source .lldbinit by default
2. lldb-vscode will source .lldbinit in production if not specified otherwise

Differential Revision: https://reviews.llvm.org/D135620
lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/lldbvscode_testcase.py
lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/vscode.py
lldb/tools/lldb-vscode/lldb-vscode.cpp