[lit] Respect LLVM_LIT_TOOLS_DIR when looking for 'tar' on Windows.
authorIgor Kudrin <ikudrin@accesssoftek.com>
Thu, 26 Oct 2017 02:31:36 +0000 (02:31 +0000)
committerIgor Kudrin <ikudrin@accesssoftek.com>
Thu, 26 Oct 2017 02:31:36 +0000 (02:31 +0000)
commit85e68a66017425d89a8a29dbfac6cdc691b5c659
treea18792027cebf5c89ab50bfbb1b760319f43416a
parent5c2aecef78a72a82c6cbece964e7e274cbafe781
[lit] Respect LLVM_LIT_TOOLS_DIR when looking for 'tar' on Windows.

Changes in D38977 expect 'tar' to be found in one of PATH directories.
On Windows, one might opt to use LLVM_LIT_TOOLS_DIR rather than add MSYS
tools directory to the PATH. In that case, tests for lld failed on run.

Differential Revision: https://reviews.llvm.org/D39278

llvm-svn: 316635
lld/test/lit.cfg.py