Commit aac7ad5
committed
[cargo-nextest] fail if --target wasn't understood
Currently, if nextest cannot parse a target triple it prints a warning, and
instead just builds on the host platform. I think that isn't the right
behavior, and instead nextest should loudly fail.
Implement this change: fail with a clear error message. I consider the current
behavior a bug, so I don't think this needs to go through the behavior change
process.
Also, hook up miette support to produce better error messages if deserializing
custom JSON fails, and add tests to verify this behavior.
For target runners, we continue to warn rather than fail.1 parent 623b3ab commit aac7ad5
File tree
17 files changed
+318
-28
lines changed- cargo-nextest/src
- integration-tests
- tests/datatest
- snapshots/custom-invalid
- nextest-runner/src
- workspace-hack
17 files changed
+318
-28
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
1160 | 1160 | | |
1161 | 1161 | | |
1162 | 1162 | | |
1163 | | - | |
1164 | | - | |
1165 | | - | |
1166 | | - | |
1167 | | - | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
1168 | 1167 | | |
1169 | 1168 | | |
1170 | 1169 | | |
1171 | | - | |
1172 | | - | |
1173 | | - | |
1174 | | - | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
1175 | 1173 | | |
1176 | 1174 | | |
1177 | 1175 | | |
| |||
2102 | 2100 | | |
2103 | 2101 | | |
2104 | 2102 | | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
2105 | 2114 | | |
2106 | 2115 | | |
2107 | 2116 | | |
| |||
2162 | 2171 | | |
2163 | 2172 | | |
2164 | 2173 | | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
2165 | 2183 | | |
2166 | 2184 | | |
2167 | 2185 | | |
| |||
2286 | 2304 | | |
2287 | 2305 | | |
2288 | 2306 | | |
2289 | | - | |
2290 | | - | |
2291 | | - | |
2292 | | - | |
| 2307 | + | |
| 2308 | + | |
| 2309 | + | |
2293 | 2310 | | |
2294 | 2311 | | |
2295 | 2312 | | |
2296 | 2313 | | |
2297 | 2314 | | |
2298 | 2315 | | |
2299 | | - | |
2300 | | - | |
2301 | | - | |
| 2316 | + | |
2302 | 2317 | | |
2303 | | - | |
2304 | | - | |
2305 | | - | |
2306 | | - | |
2307 | | - | |
2308 | | - | |
2309 | 2318 | | |
2310 | | - | |
| 2319 | + | |
2311 | 2320 | | |
2312 | 2321 | | |
2313 | 2322 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
660 | | - | |
661 | | - | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
662 | 668 | | |
663 | 669 | | |
664 | 670 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| 51 | + | |
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
| |||
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
| 60 | + | |
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments