[llvm] [UpdateTestChecks][llvm-mca] Use common.itertests and common.parse_commandline_args in update_mca_test_checks (PR #67477)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 26 12:05:47 PDT 2023


github-actions[bot] wrote:


<!--LLVM CODE FORMAT COMMENT: {darker}-->

:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r f2c9fe452f527eaa4e8cf713855585a469830606..f1bacc167941b7c741a8a7290dc9b701dcad05bd llvm/utils/update_mca_test_checks.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- update_mca_test_checks.py	2023-09-26 18:48:55.000000 +0000
+++ update_mca_test_checks.py	2023-09-26 19:05:40.267754 +0000
@@ -562,13 +562,11 @@
 
 def main():
     script_name = "utils/" + os.path.basename(__file__)
     parser = _get_parser()
     args = common.parse_commandline_args(parser)
-    for ti in common.itertests(
-        args.tests, parser, script_name=script_name
-    ):
+    for ti in common.itertests(args.tests, parser, script_name=script_name):
         try:
             update_test_file(ti.args, ti.path, ti.test_autogenerated_note)
         except Exception:
             common.warn("Error processing file", test_file=ti.path)
             raise

``````````

</details>


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


More information about the llvm-commits mailing list