Commit 6744fb5
Have mocked cargo better adhere to cargo conventions
Currently, when the mocked cargo command is passed
`--recursive-cargo-subcommand`, it runs:
```
cargo-foo --recursive-cargo
```
However, cargo subcommands are normally passed their subcommand name as
the first argument. Thus, one would expect the following to be run:
```
cargo-foo foo --recursive-cargo
```
This commit changes the mocked cargo command to do the latter. It also
adds a check to ensure that the "subcommand name as first argument"
behavior is respected.
This is, admittedly, a rather pedantic change.
Extracted from #41751 parent f41403f commit 6744fb5
1 file changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
9 | 18 | | |
10 | 19 | | |
11 | 20 | | |
| |||
63 | 72 | | |
64 | 73 | | |
65 | 74 | | |
66 | | - | |
| 75 | + | |
67 | 76 | | |
68 | 77 | | |
69 | 78 | | |
| |||
0 commit comments