Commit 1a26c0e
authored
Testing:
* withMockedHome: Don't swallow errors
The code was silently swallowing errors coming from the function under
test, so errors in the tests did not surface as test failures.
This throws the error if the cleaning the bin directory doesn't fail
first.
* Update UseTests: Swallow unknown version errors
Now that the mock home directory isn't swallowing function errors, these
are resulting in test failures when they aren't actually intended.
In these cases, we use `#expect` to verify the version, but swallow any
errors returned by the swiftly invocation.
In all cases, these were the result of trying to switch to a toolchain
that didn't exist. This should emit an error message, but leave the
selected toolchain unchanged.withMockedHome: Forward errors from function under test (#424)1 parent a28817f commit 1a26c0e
2 files changed
+22
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
| 339 | + | |
339 | 340 | | |
340 | 341 | | |
341 | 342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
15 | 22 | | |
16 | | - | |
| 23 | + | |
| 24 | + | |
17 | 25 | | |
18 | 26 | | |
19 | 27 | | |
| |||
201 | 209 | | |
202 | 210 | | |
203 | 211 | | |
204 | | - | |
| 212 | + | |
| 213 | + | |
205 | 214 | | |
206 | | - | |
207 | | - | |
| 215 | + | |
| 216 | + | |
208 | 217 | | |
209 | | - | |
| 218 | + | |
210 | 219 | | |
211 | | - | |
212 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
213 | 226 | | |
214 | 227 | | |
215 | 228 | | |
| |||
0 commit comments