[llvm] [Util] Only run --update-tests functions on failing tests (PR #155148)

Jon Roelofs via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 24 13:26:30 PDT 2025


================
@@ -1192,13 +1203,23 @@ def executeScriptInternal(
                 str(result.timeoutReached),
             )
 
-        if litConfig.update_tests:
+        if (
+            litConfig.update_tests
+            and result.exitCode != 0
+            and not timeoutInfo
+            # Don't run test updaters on XPASS failures -
----------------
jroelofs wrote:

I think you mean XFAIL here in the comment? XPASS is when an XFAIL’d test unexpectedly passes.

https://github.com/llvm/llvm-project/pull/155148


More information about the llvm-commits mailing list