[llvm-branch-commits] [llvm] [lit] Move maxIndividualTestTime from global to test suite config (PR #198192)

Vitaly Buka via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon May 25 22:47:49 PDT 2026


https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/198192

>From b88cf993f5af6c4e11f1564f37070d20c4a5d61c Mon Sep 17 00:00:00 2001
From: Vitaly Buka <vitalybuka at google.com>
Date: Sun, 17 May 2026 11:42:52 -0700
Subject: [PATCH] add comment

Created using spr 1.3.7
---
 llvm/utils/lit/lit/TestingConfig.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/llvm/utils/lit/lit/TestingConfig.py b/llvm/utils/lit/lit/TestingConfig.py
index ade70bb31b1b8..3d42cfe304d6f 100644
--- a/llvm/utils/lit/lit/TestingConfig.py
+++ b/llvm/utils/lit/lit/TestingConfig.py
@@ -250,6 +250,7 @@ def finish(self, litConfig):
             and getattr(self, "test_retry_attempts", None) is None
         ):
             self.test_retry_attempts = litConfig.maxRetriesPerTest
+        # Global config is from LIT_OPTS and must override site-specific settings.
         if litConfig.maxIndividualTestTime is not None:
             suite_timeout = self.maxIndividualTestTime
             if suite_timeout > 0 and suite_timeout != litConfig.maxIndividualTestTime:



More information about the llvm-branch-commits mailing list