From f73c6c7e84d7b12dfdf291bff4fc7e79c45da8b0 Mon Sep 17 00:00:00 2001 From: Tim Hammerquist Date: Fri, 17 Mar 2017 21:00:35 +0000 Subject: allow for specification of compiler/lldb executables basename llvm-svn: 298123 --- lldb/packages/Python/lldbsuite/test/dotest.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lldb/packages/Python') diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py index 2dc61f62835..aa0c2ff9334 100644 --- a/lldb/packages/Python/lldbsuite/test/dotest.py +++ b/lldb/packages/Python/lldbsuite/test/dotest.py @@ -277,6 +277,8 @@ def parseOptionsAndInitTestdirs(): if args.compiler: configuration.compiler = os.path.realpath(args.compiler) + if not is_exe(configuration.compiler): + configuration.compiler = which(args.compiler) if not is_exe(configuration.compiler): logging.error( '%s is not a valid compiler executable; aborting...', @@ -369,6 +371,8 @@ def parseOptionsAndInitTestdirs(): if args.executable: # lldb executable is passed explicitly lldbtest_config.lldbExec = os.path.realpath(args.executable) + if not is_exe(lldbtest_config.lldbExec): + lldbtest_config.lldbExec = which(args.executable) if not is_exe(lldbtest_config.lldbExec): logging.error( '%s is not a valid executable to test; aborting...', -- cgit v1.2.3