[lldb/test] Respect --apple-sdk path when querying SDK info
authorVedant Kumar <vsk@apple.com>
Thu, 1 Apr 2021 17:00:52 +0000 (10:00 -0700)
committerVedant Kumar <vsk@apple.com>
Thu, 1 Apr 2021 17:15:25 +0000 (10:15 -0700)
commit7d15fb5779452c5efbceb82ce0e1f8724a82d290
treeef2ce12ce66172d00bfd44246a36ae74a5289701
parentfdc4f19e2f80b2d8b6f667d854a2305f0025b34b
[lldb/test] Respect --apple-sdk path when querying SDK info

Respect --apple-sdk <path> if it's specified. If the SDK is simply
mounted from some disk image, and not actually installed, this is the
only way to use it.

Differential Revision: https://reviews.llvm.org/D99746
lldb/packages/Python/lldbsuite/test/lldbutil.py