[Lldb-commits] [lldb] ce69035 - [lldb/test] Use abspath when searching for lldb.exe
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 25 03:14:04 PST 2022
Author: Pavel Labath
Date: 2022-01-25T12:13:49+01:00
New Revision: ce6903595b7161f881b62834c55b3099853cabd5
URL: https://github.com/llvm/llvm-project/commit/ce6903595b7161f881b62834c55b3099853cabd5
DIFF: https://github.com/llvm/llvm-project/commit/ce6903595b7161f881b62834c55b3099853cabd5.diff
LOG: [lldb/test] Use abspath when searching for lldb.exe
realpath is too aggressive and does not produce the desired effect if
ones build folder is a symlink farm.
Added:
Modified:
lldb/packages/Python/lldbsuite/test/dotest.py
Removed:
################################################################################
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py
index 0815188d6cde8..ce01146055b2c 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest.py
@@ -357,7 +357,7 @@ def parseOptionsAndInitTestdirs():
if args.executable:
# lldb executable is passed explicitly
- lldbtest_config.lldbExec = os.path.realpath(args.executable)
+ lldbtest_config.lldbExec = os.path.abspath(args.executable)
if not is_exe(lldbtest_config.lldbExec):
lldbtest_config.lldbExec = which(args.executable)
if not is_exe(lldbtest_config.lldbExec):
More information about the lldb-commits
mailing list