diff options
| -rw-r--r-- | lldb/lit/lit.cfg.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lldb/lit/lit.cfg.py b/lldb/lit/lit.cfg.py index 8f89a125870..51d02aabe13 100644 --- a/lldb/lit/lit.cfg.py +++ b/lldb/lit/lit.cfg.py @@ -74,8 +74,14 @@ for i in ['module-cache-clang', 'module-cache-lldb']: print("Deleting module cache at %s."%cachedir) shutil.rmtree(cachedir) -# Set a default timeout of 10 minutes. -lit_config.maxIndividualTestTime = 600 +# Set a default per-test timeout of 10 minutes. Setting a timeout per test +# requires the psutil module and lit complains if the value is set but the +# module can't be found. +try: + import psutil # noqa: F401 + lit_config.maxIndividualTestTime = 600 +except ImportError: + pass # If running tests natively, check for CPU features needed for some tests. |

