mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
refactor: simplify Rust target directory cleanup logic
This commit is contained in:
parent
3d501df21f
commit
98b0e88ace
1 changed files with 7 additions and 8 deletions
|
@ -854,7 +854,6 @@ def run_test_real(
|
||||||
instructions += prompts.test_failures.format(file_list=file_list)
|
instructions += prompts.test_failures.format(file_list=file_list)
|
||||||
|
|
||||||
# Clean up Rust target/debug directory after all attempts
|
# Clean up Rust target/debug directory after all attempts
|
||||||
if ".rs" in {Path(f).suffix for f in test_files}:
|
|
||||||
target_dir = testdir / "target" / "debug"
|
target_dir = testdir / "target" / "debug"
|
||||||
if target_dir.exists():
|
if target_dir.exists():
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue