llvm-project/llvm/utils/lit/lit
Greg Bedwell 98b5f6d159 [lit] Only return a found bash executable on Windows if it can understand Windows paths
Some versions of bash.exe, for example WSL's version expect paths in the form
/mnt/c/path/to/dir rather than c:\\path\\to\\dir so will cause failures
for any tests that require an external shell if used by lit.  If we're on
Windows and looking for an external shell, check that the found version
of bash is able to parse a native path before returning that version.

This patch also partially reverts the behaviour of r228221 by
restoring the warning if bash cannot be found.  This shouldn't pollute
the lit stderr anymore as we're now using internal shell by default on
Windows.  If someone is explicitly specifying to use an external shell, it's
probably worth alerting them to the fact that bash could not be found.

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

llvm-svn: 345019
2018-10-23 11:34:04 +00:00
..
ExampleTests.ObjDir
builtin_commands make lit builtins a package 2018-09-28 17:55:18 +00:00
formats [lit] Port googletest lit tests to Windows 2017-07-28 01:05:55 +00:00
llvm [CMake] Use normalized Windows target triples 2018-08-09 02:16:18 +00:00
BooleanExpression.py
LitConfig.py [lit] Only return a found bash executable on Windows if it can understand Windows paths 2018-10-23 11:34:04 +00:00
LitTestCase.py
ProgressBar.py
ShCommands.py Use the current working directory in the glob expansion 2017-03-31 12:46:39 +00:00
ShUtil.py
Test.py [lit, python3] Update lit error logging to work correctly in python3 and other test fixes 2018-08-07 20:54:38 +00:00
TestRunner.py lit: Use sys.executable for executing builtin commands 2018-08-31 20:15:31 +00:00
TestingConfig.py [FileCheck] Provide an option for FileCheck to dump original input to stderr on failure 2018-07-20 20:21:57 +00:00
__init__.py lit: bump version number 2018-08-02 07:48:44 +00:00
discovery.py [lit] Actually do normalize the case of files in the config map. 2017-09-21 21:27:11 +00:00
main.py Use quoteattr to ensure we make well formed attributes 2018-05-25 00:31:36 +00:00
run.py [lit] Try to improve Ctrl-C behavior on Windows 2017-11-17 23:52:33 +00:00
util.py Mostly revert r330672. 2018-04-24 01:24:42 +00:00