Fix compiler lookup when specified without path
authorPavel Labath <labath@google.com>
Tue, 2 Feb 2016 09:49:37 +0000 (09:49 +0000)
committerPavel Labath <labath@google.com>
Tue, 2 Feb 2016 09:49:37 +0000 (09:49 +0000)
commite8baa4498dde732804b8012ee982142f0ca87fff
tree2e74851c4583870b1bafc514de4f036613defb0a
parent6c2ae4592d84529557e7b2a9ef0e435dbacbab44
Fix compiler lookup when specified without path

r259433 introduced a regression, where if a compiler is specified without a path (e.g., CC=clang,
relying on the fact that clang is in $PATH), then the test suite would fail (at the compiler
version detection step) because realpath would interpret this as a path relative to cwd). The fix
is to perform the $PATH expansion (via `which`) before the realpath step.

llvm-svn: 259484
lldb/packages/Python/lldbsuite/test/lldbtest.py
lldb/packages/Python/lldbsuite/test/plugins/builder_base.py