[Lldb-commits] [lldb] r344410 - Fix failure in get_filecheck_path when filecheck is None

Stella Stamenova via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 12 13:00:20 PDT 2018


Author: stella.stamenova
Date: Fri Oct 12 13:00:20 2018
New Revision: 344410

URL: http://llvm.org/viewvc/llvm-project?rev=344410&view=rev
Log:
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

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/configuration.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/configuration.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/configuration.py?rev=344410&r1=344409&r2=344410&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/configuration.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/configuration.py Fri Oct 12 13:00:20 2018
@@ -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




More information about the lldb-commits mailing list