summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/configuration.py
diff options
context:
space:
mode:
authorStella Stamenova <stilis@microsoft.com>2018-10-12 20:00:20 +0000
committerStella Stamenova <stilis@microsoft.com>2018-10-12 20:00:20 +0000
commit8003485cbf52405c101813be44643dd831ffca69 (patch)
treebf8298835c30dbad26e8d8591e9f526e4782f302 /lldb/packages/Python/lldbsuite/test/configuration.py
parent307f5ae898af63694bed9f880503aae38a978da7 (diff)
downloadbcm5719-llvm-8003485cbf52405c101813be44643dd831ffca69.tar.gz
bcm5719-llvm-8003485cbf52405c101813be44643dd831ffca69.zip
Fix failure in get_filecheck_path when filecheck is None
If the path was not specified (and it's None), lexists throws an exception rather than returning False. get_filecheck_path now checks whether filecheck is set before calling lexists llvm-svn: 344410
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/configuration.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/configuration.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/configuration.py b/lldb/packages/Python/lldbsuite/test/configuration.py
index d4a65cda06a..a7f4ac7efe2 100644
--- a/lldb/packages/Python/lldbsuite/test/configuration.py
+++ b/lldb/packages/Python/lldbsuite/test/configuration.py
@@ -188,5 +188,5 @@ def get_filecheck_path():
"""
Get the path to the FileCheck testing tool.
"""
- if os.path.lexists(filecheck):
+ if filecheck and os.path.lexists(filecheck):
return filecheck
OpenPOWER on IntegriCloud