jingham updated this revision to Diff 457138.
jingham added a comment.
This one actually works.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133075/new/
https://reviews.llvm.org/D133075
Files:
lldb/utils/lldb-dotest/lldb-dotest.in
Index: lldb/utils/lldb-dotest/lldb-dotest.in
===================================================================
--- lldb/utils/lldb-dotest/lldb-dotest.in
+++ lldb/utils/lldb-dotest/lldb-dotest.in
@@ -16,7 +16,11 @@
if __name__ == '__main__':
wrapper_args = sys.argv[1:]
- dotest_args = dotest_args_str.split(';')
+ 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(';')
# Build dotest.py command.
cmd = [sys.executable, dotest_path]
cmd.extend(['--arch', arch])
Index: lldb/utils/lldb-dotest/lldb-dotest.in
===================================================================
--- lldb/utils/lldb-dotest/lldb-dotest.in
+++ lldb/utils/lldb-dotest/lldb-dotest.in
@@ -16,7 +16,11 @@
if __name__ == '__main__':
wrapper_args = sys.argv[1:]
- dotest_args = dotest_args_str.split(';')
+ 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(';')
# Build dotest.py command.
cmd = [sys.executable, dotest_path]
cmd.extend(['--arch', arch])
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits