]> granicus.if.org Git - clang/commitdiff
lit.cfg: better check for MSYS
authorHans Wennborg <hans@hanshq.net>
Mon, 5 Aug 2013 20:14:43 +0000 (20:14 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 5 Aug 2013 20:14:43 +0000 (20:14 +0000)
When running the tests under Cygwin using non-Cygwin python,
the platform would be Windows and there would be bash on the path,
so this check for MSYS would not work correctly.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187737 91177308-0d34-0410-b5e6-96231b3b80d8

test/lit.cfg

index a5bb350f08d8960a25429d1a1520347439ff57c6..f2f16fb63cd91fd3f0a384e1f92fbecb531b0239 100644 (file)
@@ -245,7 +245,7 @@ if execute_external:
     config.available_features.add('shell')
 
 # Exclude MSYS due to transforming '/' to 'X:/mingwroot/'.
-if not platform.system() in ['Windows'] or lit.getBashPath() == '':
+if not platform.system() in ['Windows'] or not execute_external:
     config.available_features.add('shell-preserves-root')
 
 # ANSI escape sequences in non-dumb terminal