The timeout wasn't working because it's a property of the lit
configuration, not of the configuration in lit.site.cfg. This sets the
property for the correct object.
llvm-svn: 359492
print("Deleting module cache at %s."%cachedir)
shutil.rmtree(cachedir)
+# Set a default timeout of 10 minutes.
+lit_config.maxIndividualTestTime = 600
+
# If running tests natively, check for CPU features needed for some tests.
if 'native' in config.available_features:
config.lldb_disable_python = @LLDB_DISABLE_PYTHON@
config.have_lldb_instr = @LLDB_TOOL_LLDB_INSTR_BUILD@
config.have_lldb_vscode = @LLDB_TOOL_LLDB_VSCODE_BUILD@
-config.maxIndividualTestTime = 600
# Support substitution of the tools and libs dirs with user parameters. This is
# used when we can't determine the tool dir at configuration time.