[lldb] Don't let dotest silently fall back to default SDK if the specified one can...
authorRaphael Isemann <teemperor@gmail.com>
Tue, 13 Oct 2020 13:07:33 +0000 (15:07 +0200)
committerRaphael Isemann <teemperor@gmail.com>
Tue, 13 Oct 2020 13:07:45 +0000 (15:07 +0200)
commit480c440f9a3cf3434355f24217cfa430dc1cabda
treebfc62674d6779383a37bca10af95ca59640a55a1
parentf4f4d54ae0d8971e67fd64e10d700804105b720c
[lldb] Don't let dotest silently fall back to default SDK if the specified one can't be found

If the SDK name passed to dotest can't be found by `xcrun` we silently fall back
to the default SDK. This leads to rather cryptic errors being reported later on
when linking the actual test executables.

Instead just directly log and abort when this situation is encountered and
inform the user about the invalid argument.

Reviewed By: JDevlieghere

Differential Revision: https://reviews.llvm.org/D89053
lldb/packages/Python/lldbsuite/test/dotest.py