[Lldb-commits] [PATCH] D25486: Fix lookup path for lldb-mi

Ilia K via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 11 23:51:51 PDT 2016


ki.stfu added inline comments.


================
Comment at: packages/Python/lldbsuite/test/dotest.py:676-677
     # If not found, disable the lldb-mi tests
-    lldbMiExec = None
-    if lldbtest_config.lldbExec and is_exe(lldbtest_config.lldbExec + "-mi"):
-        lldbMiExec = lldbtest_config.lldbExec + "-mi"
-    if not lldbMiExec:
+    lldbDir = os.path.dirname(lldbtest_config.lldbExec)
+    lldbMiExec = os.path.join(lldbDir, "lldb-mi")
+    if is_exe(lldbMiExec):
----------------
Maybe it would be better to replace "lldb" with "lldb-mi" in lldbtest_config.lldbExec? So we will take into account their versions instead of ignoring them.


https://reviews.llvm.org/D25486





More information about the lldb-commits mailing list