[llvm] Fix test failure if CLANG_VENDOR contains spaces (PR #81017)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 7 09:56:06 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-testing-tools
Author: Yi Kong (kongy)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/81017.diff
1 Files Affected:
- (modified) llvm/utils/UpdateTestChecks/common.py (+1-1)
``````````diff
diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py
index 0fe0dfc506b059..75c6e438556337 100644
--- a/llvm/utils/UpdateTestChecks/common.py
+++ b/llvm/utils/UpdateTestChecks/common.py
@@ -1701,7 +1701,7 @@ def add(var):
METADATA_FILTERS = [
(
- r"(?<=\")(\w+ )?(\w+ version )[\d.]+(?:[^\" ]*)(?: \([^)]+\))?",
+ r"(?<=\")(.+ )?(\w+ version )[\d.]+(?:[^\" ]*)(?: \([^)]+\))?",
r"{{.*}}\2{{.*}}",
), # preface with glob also, to capture optional CLANG_VENDOR
(r'(!DIFile\(filename: ".+", directory: )".+"', r"\1{{.*}}"),
``````````
</details>
https://github.com/llvm/llvm-project/pull/81017
More information about the llvm-commits
mailing list