[test][lldb-vscode] Fix unclean shutdown in test_terminate_commands
authorJordan Rupprecht <rupprecht@google.com>
Thu, 26 Jan 2023 22:29:48 +0000 (14:29 -0800)
committerJordan Rupprecht <rupprecht@google.com>
Thu, 26 Jan 2023 22:29:48 +0000 (14:29 -0800)
commitdc682ed590f73f7b7417ecf66d18b303ab957c62
tree2417824bfe1565c1f1eb177be60c62927b6c0b26
parentf617c6cc91c0de5604c9df1fe2c70100aed963ac
[test][lldb-vscode] Fix unclean shutdown in test_terminate_commands

This test manually sends `terminateCommands` to shutdown, but then the test attempts another `terminateCommands` request in test tear down, which fails since it's already torn down. This error is ignored in LLDB's old fork of unittest2, but will be reported as a test failure in `unittest` from the Python standard library. Use `disconnectAutomatically` to avoid terminating twice.
lldb/test/API/tools/lldb-vscode/launch/TestVSCode_launch.py