mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
chore: Clean up Rust target/debug directory after all test attempts
This commit is contained in:
parent
1b4abb747d
commit
3d501df21f
1 changed files with 10 additions and 0 deletions
|
@ -853,6 +853,16 @@ def run_test_real(
|
||||||
instructions = errors
|
instructions = errors
|
||||||
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
|
||||||
|
if ".rs" in {Path(f).suffix for f in test_files}:
|
||||||
|
target_dir = testdir / "target" / "debug"
|
||||||
|
if target_dir.exists():
|
||||||
|
try:
|
||||||
|
shutil.rmtree(target_dir)
|
||||||
|
print(f"Cleaned up Rust target/debug directory: {target_dir}")
|
||||||
|
except Exception as e:
|
||||||
|
print(f"Failed to clean up Rust target/debug directory: {e}")
|
||||||
|
|
||||||
results = dict(
|
results = dict(
|
||||||
testdir=str(testdir),
|
testdir=str(testdir),
|
||||||
testcase=testdir.name,
|
testcase=testdir.name,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue