summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2013-10-26 13:25:45 +0000
committerJoerg Sonnenberger <joerg@bec.de>2013-10-26 13:25:45 +0000
commit0435c5dbec925f6c33a5920b63b2bcb0873efe75 (patch)
treec9fbffcf2d3b1feb2e6522757a64c99b5ef1e169
parenta685c139182519ed29c3cddd848649f533070004 (diff)
downloadllvm-0435c5dbec925f6c33a5920b63b2bcb0873efe75.tar.gz
llvm-0435c5dbec925f6c33a5920b63b2bcb0873efe75.tar.bz2
llvm-0435c5dbec925f6c33a5920b63b2bcb0873efe75.tar.xz
self.path may be empty or otherwise miss the normal system directories,
so try PATH next. Assume it is sane enough to cover the usual system bash locations too, but the old list is not good enough for NetBSD. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193471 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--utils/lit/lit/LitConfig.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/utils/lit/lit/LitConfig.py b/utils/lit/lit/LitConfig.py
index ed75e34694..b0dde5db86 100644
--- a/utils/lit/lit/LitConfig.py
+++ b/utils/lit/lit/LitConfig.py
@@ -73,11 +73,7 @@ class LitConfig:
self.bashPath = lit.util.which('bash', os.pathsep.join(self.path))
if self.bashPath is None:
- # Check some known paths.
- for path in ('/bin/bash', '/usr/bin/bash', '/usr/local/bin/bash'):
- if os.path.exists(path):
- self.bashPath = path
- break
+ self.bashPath = lit.util.which('bash')
if self.bashPath is None:
self.warning("Unable to find 'bash'.")