Skip to content

[lldb] Fix lldb-dotest.in to use args determined by CMake #124811

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions lldb/utils/lldb-dotest/lldb-dotest.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import subprocess
import sys

dotest_path = '@LLDB_SOURCE_DIR_CONFIGURED@/test/API/dotest.py'
dotest_args_str = '@LLDB_DOTEST_ARGS_CONFIGURED@'
dotest_common_args_str = '@LLDB_TEST_COMMON_ARGS_CONFIGURED@'
dotest_user_args_str = '@LLDB_TEST_USER_ARGS_CONFIGURED@'
arch = '@LLDB_TEST_ARCH@'
executable = '@LLDB_TEST_EXECUTABLE_CONFIGURED@'
compiler = '@LLDB_TEST_COMPILER_CONFIGURED@'
Expand All @@ -26,8 +27,10 @@ if __name__ == '__main__':
dotest_args = []
# split on an empty string will produce [''] and if you
# add that to the command, it will be treated as a directory...
if len(dotest_args_str) > 0:
dotest_args = dotest_args_str.split(';')
if dotest_common_args_str:
dotest_args.extend(dotest_common_args_str.split(';'))
if dotest_user_args_str:
dotest_args.extend(dotest_user_args_str.split(';'))
# Build dotest.py command.
cmd = [sys.executable, dotest_path]
cmd.extend(['--arch', arch])
Expand Down