llvm.org GIT mirror llvm / 0435c5d
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 Joerg Sonnenberger 5 years ago
1 changed file(s) with 1 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
7373 self.bashPath = lit.util.which('bash', os.pathsep.join(self.path))
7474 if self.bashPath is None:
75 # Check some known paths.
76 for path in ('/bin/bash', '/usr/bin/bash', '/usr/local/bin/bash'):
77 if os.path.exists(path):
78 self.bashPath = path
79 break
75 self.bashPath = lit.util.which('bash')
8177 if self.bashPath is None:
8278 self.warning("Unable to find 'bash'.")