Without this patch, the internal env command removes env and its
args from the command line while parsing it. This patch modifies a
copy instead so that the original command line is printed.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Suggestion, but this looks good too.
llvm/utils/lit/lit/TestRunner.py | ||
---|---|---|
881 ↗ | (On Diff #212939) | I think it would be clearer to make updateEnv return the new command to run after env instead of modifying cmd.args. We copy cmd.args on line 903 currently anyway. |
915 ↗ | (On Diff #212939) | If you take my suggestion, this needs to use args not j.args, since it will refer to "env" and not the real exe for env-prefixed commands. |
Comment Actions
Apply rnk's suggestion, and adjust updateEnv to make it clear it only operates on the arguments.
@rnk, @stella.stamenova : thanks.
I'll wait a bit to push in case there are further comments.