summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorTim Hammerquist <penryu@apple.com>2017-03-17 21:00:35 +0000
committerTim Hammerquist <penryu@apple.com>2017-03-17 21:00:35 +0000
commitf73c6c7e84d7b12dfdf291bff4fc7e79c45da8b0 (patch)
treee6d2103240a461139b014677df4303ef4ab12c08 /lldb/packages/Python/lldbsuite/test
parentc70a8f2df1c5e1af7cedd4d35e931aa2279ab2df (diff)
downloadbcm5719-llvm-f73c6c7e84d7b12dfdf291bff4fc7e79c45da8b0.tar.gz
bcm5719-llvm-f73c6c7e84d7b12dfdf291bff4fc7e79c45da8b0.zip
allow for specification of compiler/lldb executables basename
llvm-svn: 298123
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/dotest.py4
1 files changed, 4 insertions, 0 deletions
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
@@ -278,6 +278,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...',
args.compiler)
@@ -370,6 +372,8 @@ def parseOptionsAndInitTestdirs():
# 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...',
args.executable)
OpenPOWER on IntegriCloud