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

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 19 00:06:43 PDT 2024


================
@@ -743,7 +743,10 @@ def _executeShCmd(cmd, shenv, results, timeoutHelper):
                     cmd_shenv = ShellEnvironment(shenv.cwd, shenv.env)
                 args = updateEnv(cmd_shenv, args)
                 if not args:
-                    raise InternalShellError(j, "Error: 'env' requires a" " subcommand")
+                    # Return the environment variables if no argument is provided 
----------------
jh7370 wrote:

```suggestion
                    # Return the environment variables if no argument is provided.
```
Trailing whitespace.

Also, please make sure all your python files are formatted with darker.

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


More information about the llvm-commits mailing list