Commit 45ff976
committed
[lit] Fix to make "RUN: env PATH=..." work as intended
There was a bug in llvm-lit related to setting PATH using env
in the internal shell.
The new PATH wasn't used when looking up the command to be executed.
So when doing things like this in a test case
RUN: mkdir %t
RUN: env PATH=%t program ...
the internal shell would search for "program" using the orignal PATH
and not the PATH set by env when preceeding the command.
It seems like this was a simple mistake in commit 57782ef,
since the logic to pick a PATH from the cmd_shenv instead of shenv
actually was added in that patch, but the resulting path wasn't used.1 parent 86cd1df commit 45ff976
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
945 | 945 | | |
946 | 946 | | |
947 | 947 | | |
948 | | - | |
| 948 | + | |
949 | 949 | | |
950 | 950 | | |
951 | 951 | | |
| |||
0 commit comments