diff --git a/lldb/utils/lldb-dotest/lldb-dotest.in b/lldb/utils/lldb-dotest/lldb-dotest.in --- a/lldb/utils/lldb-dotest/lldb-dotest.in +++ b/lldb/utils/lldb-dotest/lldb-dotest.in @@ -20,7 +20,10 @@ # Build dotest.py command. cmd = [sys.executable, dotest_path] cmd.extend(['--arch', arch]) - cmd.extend(dotest_args) + # Don't stick empty args into the command, they will get interpreted as + # test path directories and override the default searching. + if len(dotest_args) > 0: + cmd.extend(dotest_args) cmd.extend(['--build-dir', lldb_build_dir]) cmd.extend(['--executable', executable]) cmd.extend(['--compiler', compiler])