Commit 2bed8f2
committed
test(release_homebrew): Handle read-only files when removing test repo
Add logic to make files writable and retry removal to fix teardown failures. Imported stat and added _make_writable_and_retry (used as shutil.rmtree onexc handler) and _remove_test_repo which ensures cwd is reset and uses onexc to handle permission errors. The homebrew_core_fork_repo fixture teardown now calls _remove_test_repo instead of a plain shutil.rmtree to reliably delete the test repository.1 parent 5390529 commit 2bed8f2
1 file changed
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
198 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
199 | 211 | | |
200 | 212 | | |
201 | 213 | | |
| |||
234 | 246 | | |
235 | 247 | | |
236 | 248 | | |
237 | | - | |
238 | | - | |
| 249 | + | |
| 250 | + | |
239 | 251 | | |
240 | 252 | | |
241 | 253 | | |
| |||
0 commit comments