[analyzer] SATest: Add an easy option to connect to docker for debugging
authorValeriy Savchenko <vsavchenko@apple.com>
Mon, 8 Jun 2020 09:49:31 +0000 (12:49 +0300)
committerValeriy Savchenko <vsavchenko@apple.com>
Thu, 25 Jun 2020 09:28:22 +0000 (12:28 +0300)
commit11f287826fb38be2a089d88b55c6b681d128ed02
tree167fead652b201df972768f176780c1ca26fbd00
parent061b5bf914c6395fbd1b52aad7542289b8adb072
[analyzer] SATest: Add an easy option to connect to docker for debugging

Summary:
Docker on its own has a pretty convenient way to run shell.
This method, however, requires target container to be currently running,
which is not a usual scenario for the test system.  For this purpose,
it is better to have a simple way to run the container, shell it, and
clean up at the end of it all.  New option `--shell` does exactly this.

Differential Revision: https://reviews.llvm.org/D81598
clang/utils/analyzer/SATest.py
clang/utils/analyzer/entrypoint.py