[llvm] [llvm-lit] Resolve env subcommand required error (PR #98414)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 11 00:42:50 PDT 2024


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 541f22ee361a8b3029ac898db29d3e9184fb1671...95cc2cc1da3108d13cae3d5fe42e3113c6ede1cf llvm/utils/lit/lit/TestRunner.py
``````````

</details>

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

``````````diff
--- TestRunner.py	2024-07-10 23:22:04.000000 +0000
+++ TestRunner.py	2024-07-11 07:42:27.136343 +0000
@@ -741,11 +741,11 @@
                 #   env FOO=1 %{another_env_plus_cmd} | FileCheck %s
                 if cmd_shenv is shenv:
                     cmd_shenv = ShellEnvironment(shenv.cwd, shenv.env)
                 args = updateEnv(cmd_shenv, args)
                 if not args:
-                    # Return the environment variables if no argument is provided 
+                    # Return the environment variables if no argument is provided
                     return {key: value for key, value in cmd_shenv.env.items()}
             elif args[0] == "not":
                 not_args.append(args.pop(0))
                 not_count += 1
                 if args and args[0] == "--crash":

``````````

</details>


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


More information about the llvm-commits mailing list