From 8003485cbf52405c101813be44643dd831ffca69 Mon Sep 17 00:00:00 2001 From: Stella Stamenova Date: Fri, 12 Oct 2018 20:00:20 +0000 Subject: 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 --- lldb/packages/Python/lldbsuite/test/configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/packages/Python/lldbsuite/test/configuration.py') 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 -- cgit v1.2.3