[llvm-branch-commits] fixup! [UTC] Strip only standalone positional %s in update_test_checks.py (PR #221156)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Sep 4 00:14:00 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-testing-tools

Author: Vitaly Buka (vitalybuka)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/221156.diff


1 Files Affected:

- (modified) llvm/utils/update_test_checks.py (+1-2) 


``````````diff
diff --git a/llvm/utils/update_test_checks.py b/llvm/utils/update_test_checks.py
index 25b8c282e9cf0..821af28c1b126 100755
--- a/llvm/utils/update_test_checks.py
+++ b/llvm/utils/update_test_checks.py
@@ -72,8 +72,7 @@ def update_test(ti: common.TestInfo):
             continue
 
         tool_cmd_args = tool_cmd[len(tool_basename) :].strip()
-        tool_cmd_args = re.sub(r"(?:^|\s)< %s(?=\s|$)", "", tool_cmd_args)
-        tool_cmd_args = re.sub(r"(?:^|\s)%s(?=\s|$)", "", tool_cmd_args).strip()
+        tool_cmd_args = re.sub(r"(?:^|\s)(?:<\s*)?%s(?=\s|$)", "", tool_cmd_args).strip()
         check_prefixes = common.get_check_prefixes(filecheck_cmd)
 
         # FIXME: We should use multiple check prefixes to common check lines. For

``````````

</details>


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


More information about the llvm-branch-commits mailing list